Answer:
The main difference b/w these two is that thermal energy deals with the heat while Temperature deals with the kinetic energy of the molecules .
Explanation:
In case of thermal energy , heat is the only concern for the object as in this scenario , bucket and swimming pool has larger surface area to absorb the heat directly from the sun while the temperature is relevant to the kinetic motion of the water molecules in the exhibited objects in the example .
Let me know if you need more explanation about this . thanks