topic: thermochemistry

i'm not really sure how to go about his question. i'm not sure with formula to use. (perhaps Cspht= q/(m x deltaT)?)can you please help me step by step or give me a hint and i'll post my answer, pretty please?

"250g of hot coffee at 95 degree celsius are placed in a 0.200 kg mug at 20 degree celsius. The specific heat of the coffee is 4.00 Jg^-1K^-1 while that of the mug is 0.80 Jg^-1K^-1. Assuming that no heat is lost to the surroundings, what is the final temperature of the mug+coffee system?"

2 answers

The sum of the heats gained is zero.

Heat gained by mug+heat gained by coffee=0

massmug*Cmug*(Tf-20)+masscoffee*Cwater*(Tf-95)=0
solve for Tf
oh! i get it now. q mug + q coffee = 0
after typing many numbers on my calculator i got the final temperature to equal 84.65 degrees C. I'm sure this is right, thank you very much :)