Context: Fred baked two identical cakes. When he took them out of the oven, he left one cake in its pan and took the other cake out of its pan to put it on a plate. This table shows how the temperature of each cake changed over 5minutes.
During this time, thermal energy was transferred from () to ().
A. each cake . . . the surroundings
B. the surroundings . . . each cake
Determine the correct option from the provided choices and reply with its corresponding letter.

A