P-V curve of a diatomic gas is shown in the figure. Find the total heat given to the gas in the process A to B to C