Two elements $A$ and $B$ form compounds of formula $AB_2$ and $AB_4$. When dissolved in $20.0\, g$ of benzene $1.0 \,g$ of $AB_2$ lowers f. pt. by 2.3$^{\circ}$C whereas $1.0\, g$ of $AB_4$ lowers f. pt. by 1.3$^{\circ}$C. The $K_f$ for benzene is $5.1$. The atomic masses of $A$ and $B$ are