Two moles of a monoatomic ideal gas are contained at a pressure of 1 atm and a temperature of 300k. 34166j of heat are transferred to the gas, as a result of which the gas expands and does 1216j of work against its surroundings. the process is reversible. Calculate the temperature of the gas.