Which object has the most thermal energy?

 - a 150-gram baked potato at a temperature of 31°C
 - a 150-gram baked potato at a temperature of 40°C
 - a 150-gram baked potato at a temperature of 36°C
All three baked potatoes have the same mass but different temperatures. Since the 40°C potato is the hottest, it has the most thermal energy.