In order to calculate the final temperature, we can use the formula below:
![Q=m\cdot c\cdot\Delta T](https://img.qammunity.org/2023/formulas/physics/college/k6zi87syberk5iehmkrviwyf377rmh9j32.png)
Where Q is the heat energy (in Joules), m is the mass, c is the specific heat and Delta T is the change in temperature (final temperature minus initial temperature).
So, using Q = 10312 J, m = 4 kg, c = 390 J/kg°C and Ti = 28°, we have:
![\begin{gathered} Q=m\cdot c\cdot(T_f-T_i)\\ \\ 10312=4\cdot390\cdot(T_f-28)\\ \\ 10312=1560T_f-43680\\ \\ 1560T_f=10312+43680\\ \\ 1560T_f=53992\\ \\ T_f=(53992)/(1560)\\ \\ T_f=34.61\text{ \degree C} \end{gathered}](https://img.qammunity.org/2023/formulas/physics/college/tqjmvpjnux6iqr6twu5dv9qs78uwje2q9i.png)
Therefore the final temperature is 34.61 °C.