Which object has the most thermal energy?

 - a pencil at a temperature of 20°C
 - a pencil at a temperature of 27°C
 - a pencil at a temperature of 0°C
All three pencils have the same mass but different temperatures. Since the 27°C pencil is the hottest, it has the most thermal energy.