4-40 Steam at 75 kPa and 8 percent quality is contained in a spring-loaded piston-cylinder device, as shown in Fig. P4-40, with an initial volume of 2 m. Steam is now heated until its volume is 5 m and its pressure is 225 kPa. Determine the heat transferred to and the work produced by the steam during this process.

Fig: 1

Fig: 2