A and B are two identical containers connected by a tap S initially closed.
A contains an ideal gas at a pressure P1 and a temperature T1.
B contains the same gas at a pressure P2 and temperature T2.
The tap S is then opened.
If the temperatures of the containers A and B remain constant at T1 and T2 respectively, prove that the final pressure of the gas mixture is (P1T2+P2T1)/(T1+T2).
( You may refer to the HKALE 1985 physics MC question No.10. )