Answer :
Overall energy is conserved so the energy generated must equal to the kinetic energy and thermal energy.
20,000 = 5,000 + T.E
Thermal energy = 15,000 J
20,000 = 5,000 + T.E
Thermal energy = 15,000 J