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