A 0.5m^3 adiabatic tank contains steam at 1000 kPa and 350 C and is connected to a discharge line this is maintained at 100kPA. The valve is opened and the tank decreases in pressure until it reaches 100kPA. Determine the final steam in the tank and the mass discharged.