Why magnesium chloride is MgCl₂: add atoms until electrons given equal electrons taken, then see the ratio repeat in a crystal lattice.