Heat gained or absorbed 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)
50.0 cal = 15 g (0.175 cal/g-C) (T2-T1)
T2-T1 = 19.05 C
T2 = 19.05 + 20
T2 = 39.05 C