A thermodynamic system is taken from an original state to an intermediate state by the linear process shown in the figure. Its 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.