A 0.5 m3 rigid tank contains refrigerant-134a initially at 200 kPa and 40 percent quality. Heat is now transferred to the refrigerant until the pressure reaches 800 kPa. Determine (a) the mass of the refrigerant in the tank and (b) the amount of heat transferred. Also, show the process on a P-v diagram with respect to saturation lines.