Solve the below problem:
Q: A rigid container has two rooms filled with water, each 1 m3 separated by a wall. Room A has P = 200 kPa with a quality x = 0.80. Room B has P = 2 MPa and T = 400°C. The partition wall is removed and the water comes to a uniform state, which after a while due to heat transfer has a temperature of 200°C. Find the final pressure and the heat transfer in the process