A thermodynamic system goes from state (i) (P,V) to (2P,V) and (ii) (P,V) to (P,2V) as shown in the figure. Work done in the two cases is :