An unknown compound has the following chemical formula:
Mg, C12
where x stands for a whole number.
Measurements also show that a certain sample of the unknown compound contains 4.3 mol of magnesium and 8.62 mol of chlorine.
Write the complete chemical formula for the unknown compound.