Context: Two friends bought phones that cost different amounts but had identical batteries. After using the phones for a while, both friends had to turn them off to let the batteries cool. This table shows how the temperature of each battery changed over 5minutes.
During this time, thermal energy was transferred from () to ().
A. the surroundings . . . each battery
B. each battery . . . the surroundings
Answer with the option's letter from the given choices directly.

B