To solve this problem, we must basically count the total energy lost converting all the values given in the international system.
The energy loss is given by both 124KJ and 124food heats.
Since the energy conversion we know that 1 food calories is equal to 4,184J. So:

Therefore the total energy lost will be


Therefore the total energy lost to the surroindings in form of heat is 124.518kJ