A tank has a volume of 0.5 m^3 and contains nitrogen and water vapor. The temperature of the mixture is 50C and the total pressue is 2 MPa. The partial pressure of the water vapor is 5 KPa. Calculate the heat transfer when the contents of the tank are cooled to 10C