Solving Specific Heat Problems

solving specific heat problems
Need help solving specific heat problem.?

I have the following information. The mass of the iron is 21.5g and its initial temperature is 100.0 degree Celsius. And an insulated container with 132 grams of water and it’s initial temperature is 20.0 degree Celsius. And i need to find the final temperature.
I know the specific heat of iron and water. 4.184J/g x C for water and .449J/g x C for iron. The thing is I’m not provided with the heat so I’m not sure how to solve it.
Here is the equation i know for how to solve Final temperature.
Final temperature = (Heat/ Mass x Specific Heat) + Initial temperature.
Could someone provide me with the proper equation or an answer to this?
My teacher gave me this equation to find heat. Mass(water) x Specific heat(water) x (Final temperature – initial temperature)(Water) = Mass (iron) x Specific heat ( iron) x (Final temperature – initial temperature)(Iron). But i still didn’t know how to solve for it.

heat gained + heat lost = 0

21.5 x 0.449 ( T – 100 ) + 132 x 4.184 ( T – 20 ) = 0

9.65 T – 965 + 552 T – 11046 = 0

561.65 = 12011

T = 21.4 °C

Specific Heat