Regular polygons $\mathrm{A}$ and $\mathrm{B}$ have number of sides in the ratio $1: 2$ and interior angles in the ratio $3: 4$. Then the number of sides of $\mathrm{B}$ equals