(a) Let $p_{1}\ and\ p_{2}$ are the initial and final pressures of the gas filled in $A.$ Then
$p_{1} = \frac{n_{A}RT}{V}\ \ \ and\ \ p_{2} = \frac{n_{A}RT}{2V}$
$\mathrm{\Delta}p = p_{2} - p_{1} = - \frac{n_{A}RT}{2V}$
$\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ = - \left( \frac{m_{A}}{M} \right)\frac{RT}{2V}$ …(i)
where $M$ is the atomic weight of the gas.
Similarly, $1.5\mathrm{\Delta}p = - \left( \frac{m_{B}}{M} \right)\frac{RT}{2V}$ …(ii)
Dividing Eq.(ii) by Eq. (i), we get
$1.5 = \frac{m_{B}}{m_{A}}\ \ \ \ \ \ \ \ \ or\ \ \ \ \ \ \ \ \ \frac{3}{2} = \frac{m_{B}}{m_{A}}$
or $3m_{A} = 2m_{B}$