A man consumes 50,000J of heat in doing his work out activities. A serving of his food provides him with 25,000J of energy. Interpret the energy values in terms of first law of thermodynamics.