Predict the empirical formulas of the ionic compounds formed from the following pairs of elements.
Mg and Cl

Cs and Br


Ga and I

Na and O


Sr and F

Ca and P