A $0.5\, dm^3$ flask contains gas $A$ and $1 \,dm^3$ flask contains gas $B$ at the same temperature. If density of $A = 3.0\, g\, dm^{-3}$ and that of $B = 1.5\, g\, dm^{-3}$ and the molar mass of $A=\frac{1}{2}$ of $B$, then the ratio of pressure exerted by gases is