Since ball is at a specific height it possess potential energy
= mgh
where m is mass, g is gravity and h is height
Initial energy of ball = mg h1
= 20 mg
Final energy of ball = mgh2
=10 mg.
Therefore, the loss in energy initialenergyinitialenergy−finalenergy×100
= 20mg20mg−10mg×100
=50%