Two identical containers A and B have frictionless pistons. They contain the same volume of an ideal gas at the same temperature. The mass of the gas in A is mA and that in B is mB.