J.R. S. answered 03/18/20
Ph.D. University Professor with 10+ years Tutoring Experience
Cation is Mg2+
Anion is N3-
Electron configurations...
For Mg write the ground state configuration and remove 2 valence electrons.
For N write the ground state configuration and add 3 electrons.