Six grams of hydrogen gas at a temperature of 273K was isothermally expanded to five times its initial volume and then isochorically heated so that the pressure in the final state becomes equal to that in the initial state. Find the total amount of heat absorbed by the gas during the entire process (in joules).