Two chamber containing m1 and m2 grams of a gas at pressures P1 and P2 respectively are put in communication with each other