William W. answered 06/05/19
Math and science made easy - learn from a retired engineer
Q = (m)(c)(ΔT) where Q is heat energy, m is the mass of the object getting hotter, c is the specific heat of the object that is getting hotter (this is a constant you will look up in a book), and ΔT is the change in temperature of the object (so it's the initial temperature subtracted from the final temperature of the object that's getting hotter)
The Specific Heat (c) of water is 4.186 joule/gram °C. So Q = (76g)(4.186 joule/gram °C)(62°C - 31°C) or Q = 9862,216 joules. There are two sig figs in the given measurements so, as noted, it is appropriate to report the answer in two sig figs so Q = 9900 joules