(b) Because the efficiency of machine is 90%, hence, potential energy gained by the mass
$= \frac{90}{100} \times$ energy spend $= \frac{90}{100} \times 5000 = 4500\ J$
When the mass is released now, gain in KE on hitting the ground
$=$ Loss of potential energy
$= 4500\ J$