The diagram shows two identical beakers, each containing the same mass of pure water. The temperature of the water in beaker P is 30°C, while the temperature of the water in beaker Q is 60°C. A 50 g aluminium cube at 20°C is placed inside each beaker.
Which substance gains the greatest amount of heat energy?