Please help!

400 calories of heat are added to 40grams of water at 20celcius . What's the final temp reached ?

C of water is 1 calorie/gram deg C

400 = 1 * 40 (T-20)
10 = T-20
T = 30