The heat absorbed or released by a substance is given by the following formula:
![Q=m\cdot Cp\cdot(T2-T1)](https://img.qammunity.org/2023/formulas/chemistry/college/m62q8ubwcmtzn3f4bylvnz0wi2jszb9ea7.png)
Where Q is the heat absorbed or released, m is the mass of the substance, Cp is the specific heat, T2 is the final temperature and T1 is the initial one.
We know the values of Q, m, T2 and T1 because they are given by the question statement, and we have to find the value of Cp.
Solve the equation for Cp and use the given values to find its value:
![\begin{gathered} Cp=(Q)/(m\cdot(T2-T1)) \\ Cp=(2547J)/(51.72g(123.4\degree C-23.5\degree C)) \\ Cp=(0.49J)/(g\degree C) \end{gathered}](https://img.qammunity.org/2023/formulas/chemistry/college/y7e9f9f37qhqtvatl79tsbl10ej24gxyjj.png)
The specific heat of the substance is 0.49J/g°C.