the temperature of a sample of water increases from 15.0c to 30c as it absorbs 5000j of heat what is the mass of the sample? specific heat of water is 2.03 j/gc

The formula that relates the heat and the temperature change is:
[tex]Q=mc\Delta T[/tex]Where Q is the heat, m is the mass, c is the specific heat and ΔT is the temperature change.
Since it absorbes heat, the sign of Q is positive, so:
[tex]Q=5000j[/tex]And the change in temperature is:
[tex]\Delta T=T_f-T_i=30\degree C-15.0\degree C=15\degree C[/tex]So, solving the equation for m and substituting the values, we have:
[tex]\begin{gathered} Q=mc\Delta T \\ mc\Delta T=Q \\ m=\frac{Q}{c\Delta T}=\frac{5000j}{2.03j/g\degree C\cdot15\degree C}=164.20\ldots.g\approx164g \end{gathered}[/tex]So, the mass of the sample is approximately 164 g.