find the pressure and the mass of the water at the initial state b fin

Question

A cylinder/piston arrangement contains water at 105°C, 80% quality, with a volume of 1 L (state 1). The system is heated, causing the piston to rise and encounter a linear spring, as shown in figure. At this point (state 2) the volume is 1.5 L, the piston diameter is 150 mm, and the spring constant is100 N/mm. The heating continues, so the piston compresses the spring until the pressure reaches 200 kPa (state 3). Neglect the weight of the piston. а)Find the pressure and the mass of the water at the initial state ( b) Find the pressure and temperature of the water at the state 3. c) Sketch the p-v and T-v diagram for the process.