A piston cylinder contains 1 kg of liquid water at 20oC and 300 kPa. There is a linear spring mounted on the piston such that when the water is heated the pressure reaches 3 MPa with a volume of 0.1 m3. Find the final temperature and the heat transfer in the process.