A container AB in the shape of a rectangular parallelopiped of length 5 m is divided internally by a movable partition P as shown in the figure. The left compartment is filled with a given mass of an ideal gas of molar mass 32 while the right compartment is filled with an equal mass of another ideal gas of molar mass 18 at same temperature. What will be the distance of P from the left wall A when equilibrium is established?