Answer:

Step-by-step explanation:
To write the correct formula for magnesium iodide, we can use the periodic table to see how many valence electrons they will lose/gain. Since Magnesium will lose two electrons and Iodine will gain 1 electron, you need two Iodine for every Magnesium ion. Therefore, the formula is
.