Thermal Energy is directly proportional to the temperature
Or
[tex]\\ \sf\longmapsto Thermal\: Energy\propto Temperature [/tex]
So if temperature increases the thermal Energy also increases.
An object which is 20°C warmer than other has more thermal energy