Which object has more thermal energy?

 - a 200-gram cup of black tea at a temperature of 60°C
 - a 200-gram cup of black tea at a temperature of 40°C
The two cups of black tea have the same mass but different temperatures. Since the 60°C cup of black tea is hotter than the 40°C cup of black tea, it has more thermal energy.