A diatomic ideal gas is heated at constant volume until its pressure becomes 3 times.it is again heated at constant pressure until its volume is doubled.find the molar heat capacity for the whole process?