A cannon launches a 5.0kg pumpkin with 160 J of kinetic energy. What is the pumpkin’s speed? Round answer to two significant digits.

I found an answer from www.calculatorsoup.com
Kinetic Energy Calculator
In classical mechanics, kinetic energy (KE) is equal to half of an object's mass (1/ 2*m) multiplied by the velocity squared. For example, if a an object with a mass of ...
For more information, see Kinetic Energy Calculator
Kinetic energy is the energy that an object has as a result of its motion.
K.E = \frac{1}{2} mv^2
Where, m - mass of an object and v - velocity of the object
Step 1: Take note of the information provided.
Mass of the pumpkin m = 5.0 kg
Kinetic energy of the pumpkin K.E = 160 J
Speed of pumpkin v = ?
Step 2: Calculating the speed of the pumpkin
K.E = \frac{1}{2} mv^2
v^2 = \frac{2K.E}{m}
v = \sqrt{\frac{2*160}{5.0}}
v = \sqrt{64}
v = 8
Hence, speed of the pumpkin v = 8 m/s