Suppose you have the same mass of water and air. If you want to raise the temperature of water and air from 20°C to 30°C, which substance will require more energy, Q, to do so?
Water has a higher specific heat than air. So, it will require more energy to raise the temperature of water from 20°C to 30°C compared to what is needed to raise the temperature of the same mass of air.