To begin, your equation is Q=mc{triangle}T
Q is the end heat in Joules
m is the mass
c is the specific heat
and
{triangle} T is the change in temperature
Now that we have the equation down, we are trying to find the end heat.
Your specific heat, I suspect is 0.450 J/g{degrees}C because its the specific heat of iron. Making your equation you'll get:
Q=(39g)x(0.450 J/g{degrees}C)x(9{degrees}C)
Multiplying it all you'll get:
Q= 157.95J
or
157.95 Joules