Solution:
Concept: A body of mass m at a height h above the ground has gravitational potential energy U = m g h; when it falls, this energy changes into kinetic energy.
When no friction or air resistance acts, the mechanical energy (potential energy U + kinetic energy K) of a body stays constant: whatever potential energy it loses, it gains as kinetic energy, and the other way round.
Given: M = 10 kg, starting height 5 m (at rest), g = 10 m s⁻², no friction.
Step 1 — Find the energy at the start.
At 5 m the body is at rest, so its kinetic energy is zero and all its energy is potential energy:
U=mgh=10×10×5 J=500 J
Step 2 — Part (i): total mechanical energy at 2 m.
There is no friction, so the mechanical energy stays 500 J all the way down. At 2 m it is shared between potential and kinetic energy:
U2=10×10×2 J=200 J
K2=(500−200) J=300 J
So the total at 2 m is 200 J + 300 J, that is 500 J.
Step 3 — Part (ii): kinetic energy just before the ground.
Just above the ground the height is zero, so the potential energy is zero and all the 500 J is kinetic energy:
K=(500−0) J=500 J

Watch out: Part (i) asks for the TOTAL mechanical energy at 2 m (500 J), not the kinetic energy (300 J) or the potential energy (200 J) there.
Therefore, (i) total mechanical energy at 2 m = 500 J; (ii) kinetic energy just before hitting the ground = 500 J.