# The law of constant composition - 2 | Ionic and Covalent Compounds

Element X forms 3 different compounds with element Y:

Compound 1: XY6 with 2.82 g of Y per gram of X
Compound 2: XYα with 1.41 g of Y per gram of X
Compound 3: XYβ with 0.94 g of Y per gram of X

What is the numerical value of α and β?

$\frac{1.41}{2.82}$ = $\frac{\mathrm{\alpha }}{6}$ ⇒ α = 3

$\frac{0.94}{2.82}$ = $\frac{\mathrm{\beta }}{6}$ ⇒ β = 2