A 2-m3 tank initially contains a mixture of saturated-vapor steam and saturated-liquid water at 3000 kPa. Of the total mass, 10% is vapor. Saturated-liquid water is bled from the tank through a valve until the total mass in the tank is 40% of the initial total mass. If during the process the temperature of the contents of the tank is kept constant, how much heat is transferred?