A thermodynamic system is taken from an original state to an intermediate state by linear process shown in figure here

A thermodynamic system is taken from an original state to an intermediate state by linear process shown in figure here. The volume is then reduced to the original value from E to F by an isobaric process. Calculate the total work done by the gas from D to E to F.