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