Two ideal gases, X and Y, have the same pressure, volume and temperature. The same quantity of heat is supplied to both gases. Gas X absorbs the thermal energy at constant volume whereas gas Y absorbs the thermal energy at constant pressure. State and explain which of the two gases will have the highest final temperature.