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