Let the mass of the ball be m kg.
Gravitational potential energy Q=mgh
⇒Q=m×5×104 J
Energy required to heat the ball from 40∘C to 340∘C is given by
Q1=msΔT
Q1=m×125×[340−40]=m×37500 J
Energy required to melt the ball completely
Q2=mL, where L = Latent heat of fusion of the ball
For the ball to melt completely, gravitational P.E must be converted to the required heat due to the presence of air resistance.
From the data given in the question,
Q=Q1+Q2
⇒m×5×104=m×37500+mL
⇒L=12500 J kg−1
The latent heat of the fusion of ball is 12500 J kg−1=12.5 kJ/kg