The heat energy lost or gained by a substance is given by the equation
Q = mCΔT, where
Q is the heat energy gained or lost by a substance,
m is mass (in grams),
C is the specific heat of the substance,
ΔT is the change in temperature (final temperature - initial temperature).
The joules given off by 617 grams of water cooling from 65°C to 28°C, given the specific heat of water as Cw=4.186 J/g*Co, is:
Q = mCwΔT
Q = (617)(4.186)(28 - 65)
Q = -95562.194
Negative means heat is lost, so 96000 J of heat was lost.