To raise the temperature of a certain mass of gas by 50∘C at a constant pressure, 160 calories of heat is required. When the same mass of gas is cooled by 100∘C at constant volume, 240 calories of heat is released. How many degrees of freedom does each molecule of this gas have (assume gas to be ideal)?
a. 5
b. 6
c. 3
d. 7