Here's why:
* Mg: Represents the element magnesium.
* (NO₂)₂: Represents two nitrite ions (NO₂⁻).
To name an ionic compound, you use the name of the cation (positive ion) followed by the name of the anion (negative ion).