The principle of calorimetry states: When a hot body is brought in contact with a cold body, heat passes from the hot body to the cold body till both attain the same temperature.
Heat lost by hot body = Heat gained by cold body.
Let the mass of hot body be m1 , its specific heat s1 and its temperature t1 °C and let the mass of cold body be m2, its specific heat s2 and its temperature t2°C.