You need to use the equation q=mcΔT.
q=the heat absorbed or released
m= the mass of the sample (in this case 250g)
c=the specific heat of the sample (in this case 4.18J/g°C)
ΔT=the change in temperature (in this case 5°C)
When you plug every thing in you should get q=5225J or 5.225kJ
I hope this helps. Let me know if anything is unclear.