For gas A : Its mass = 2 g
PA=1 atm, T=298 K
For gas B : Its mass =3 g
PB=0.5 atm, T=298 K
According to Dalton's law of partial pressure
P=PA+PB
1.5=1+PB
∴,PB=0.5 atm
Now,
PV=nRT
PV=wmRT
For gas A
PA=1 atm,m=MA,w=2 g
1×V=2×RTMA...(i)
For gas B
PB=0.5 atm,m=MB,w=3 g
0.5×V=3×RTMB...(ii)
Dividing equation (i) and (ii)
0.5=3×MA2MB
or
MAMB=13
Hence, 1×3=3.