Answer:
The answer to your question is:
Explanation:
Ionic compound is formed when a metal and a nonmetal are attached.
If we have MgX₂, that means that the nonmetal must have a valence of -1.
From the list the nonmetals with a valence of -1 are:
Bromine(Br) and fluorine(F).