Energy in the amount of 470 J is added to a 30.0 g sample of water at a temperature of 9.00 degrees C. What will be the final temperature of the water?

q = 470 = mass x specific heat x (Tfinal-Tinitial).

470 = 30.0 x 4.18 x (Tf - 9.00)
Solve for Tf.