Which object has the most thermal energy?

 - an 800-gram rock at a temperature of 31°C
 - an 800-gram rock at a temperature of 24°C
 - an 800-gram rock at a temperature of 20°C
All three rocks have the same mass but different temperatures. Since the 31°C rock is the hottest, it has the most thermal energy.