A piston cylinder device initially contains 0.6 kg of steam with a volume of 0.1 m3. The mass of the piston is such that it maintains a constant pressure of 800 kPa. The cylinder is connected through a valve to a supply line that carries steam at 5 MPa and 5000C. Now the valve is opened and steam is allowed to flow into the cylinder until the volume of the cylinder doubles and the temperature in the cylinder reaches 2500C, at which point the valve is closed. Determine (a) the mass of steam that has entered and (b) the amount of heat transfer.