Use the following formula for the amount of heat absorbed:
![Q=mc(T_-T_o)](https://img.qammunity.org/2023/formulas/physics/college/lt7ci1yoxcm5sere28be27scdimksmsk0n.png)
where m is the mass, c is the specific heat of water, To is the initial temperature and T is the final temperature.
Take into account that the amount of heat absorbed by water at 5°C comes from the water at 80°C. Then, you can write:
![\begin{gathered} Q_1=-Q_2 \\ m_1c(T-T_(o1))=-m_2c(T-T_(o2)) \end{gathered}](https://img.qammunity.org/2023/formulas/physics/college/gk7wo0v0bom1xb8iq3v5qfdqg5nxg5ncvp.png)
where,
m1 = 5kg
To1 = 5°C
m2 = 3kg
To2 = 80°C
You can cancel specific heat c in the last equation, solve for T, replace the values of the other parameters and simplify, as follow:
![undefined]()