Answer
See explanation.
Work Step by Step
After the first electron is removed from an atom, the next electron is harder to extract because you are pulling the electron from a positively charged ion, not from a neutral atom.
The third ionization energy of magnesium is huge because the $Mg^{+2}$ ion has a filled-shell electron configuration.