During this time, thermal energy was transferred from each pizza to the surroundings. Therefore, the correct answer is:
A. each pizza... the surroundings
This is evident because the temperature of both pizzas decreased over the 15 minutes, indicating that they lost thermal energy to the environment.