w = – pex (Vf –Vi ) = –2 × 40 = – 80 L bar = – 8 kJ
The negative sign shows that work is done by the system on the surrounding. Work done will be more in the reversible expansion because internal pressure and exernal pressure are almost same at every step.