P-T curve of a cyclic process is shown. If number of moles of the gas are n. The work done by the gas in the given process is