Answer:
See explanation
Step-by-step explanation:
First of all, the student has not represented the formula of the nitrite ion correctly. The formula of the nitrite ion is represented as NO2^- whereas the student wrote N,O2.
Then, the charge on magnesium ion has been correctly designated as +2 while the charge on the nitrite ion is correctly designated as -1. Now, the ions can exchange valencies (without signs and we now write them as subscripts) to yield Mg(NO2)2.