Water, in a piston/cylinder arrangement B is connected to a 1 m3 tank A by a line and valve. Initially, at state 1, the fluid in A has pressure of 100 kPa, and is a saturated vapor. The fluid in B is at a temperature of 400°C, pressure of 300 kPa, and volume of 1 m3. The valve is now opened and, the water in both A and B comes to a uniform state at state 2. Find the initial mass in A and B. If the process results in T2 = 200°C, find the heat transfer and work done from state 1 to 2.