(a) When the piston is in equilibrium, the pressure is same on both the sides of the piston. It is given that temperature and weight of gas on the two sides of piston not change. From ideal gas equation, $pV = n\ RT,\ $we have $V \propto$ mass of the gas.
So, $\frac{V_{1}}{V_{2}} = \frac{m_{1}}{m_{2}}\ or\ \frac{V_{1}}{V_{2}} + 1 = \frac{m_{1}}{m_{2}} + 1$
Or $\frac{V_{1} + V_{2}}{V_{2}}\ = \frac{m_{1} + m_{2}}{m_{2}}$
Or $\frac{V_{2}}{V_{1} + V_{2}}$ = $\frac{m_{2}}{m_{1} + m_{2}} = \ \frac{2m}{m + 2m} = \frac{2}{3}$