A rigid tank initially contains 0.5 kg of steam at 800 kPa and 300oC (u = 2790.6 kJ/kg, v1=0.3241m3/kg) and is connected through an insulated valve to a steam supply line that is capable of supplying steam at a constant condition of 1.4 MPa, 300oC ( h=3039.7 kJ/kg ). The valve is opened so that the supply steam flows slowly into the tank until the pressure and temperature inside are 1.2 MPa and 300oC(u=2788.6kJ/kg, v=0.2138 m3/kg). The final mass of steam in the tank and the heat transfer to (or from) the steam in the tank during the process respectively are