Context: Emilio 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. the surroundings . . . each cake
B. each cake . . . the surroundings
Select the correct answer from the provided options and reply with the letter associated with it.

B