Figure shows two vessels A and B with rigid walls containing ideal gases. The pressure, temperature and the volume are pA,TA, V in the vessel A and pB,TB, V in the vessel B. The vessels are now connected through a small tube. Show that the pressure p and the temperature T satisfy pT=12(pATA+pBTB) when equilibrium is achieved.