Calculate the reversible work and irreversibility for the process , cylinder with a piston restrained by a linear spring contains 2 kg of carbon dioxide at 500 kPa, 400°C. It is cooled to 40°C, at which point the pressure is 300 kPa. assuming that the heat transfer is with the surroundings at 20°C.