Heat
gained or added in a system can be calculated by multiplying the given mass to the
specific heat capacity of the substance and the temperature difference. It is
expressed as follows:
Heat = mC(T2-T1)
40000 = 4(4186)(T2 - 30.0)
T2 = 32.4 degrees Celsius