Two substances A and B, initially at different temperatures, are thermally isolated from their surroundings and allowed to come into thermal contact. The mass of substance A is twice the mass of substance B, but the specific heat capacity of substance B is four times the specific heat capacity of substance A. Which substance will undergo a larger change in temperature?