Wait what exactly is your question?
If you have something like Mg2+ with two valence electrons... The first electron requires a certain amount of energy to remove. The second electron will require more energy to remove because the nucleus does have a stronger hold on it. There's also no repulsion on the second electron from the first anymore.
I remember doing this in highschool, but you can't think about the normal orbits that go from 2, 8, 8, etc. You have to think about the orbitals and sp3 hybridization. Orbitals being the area where the electron is most likely to be found.
But in any case, electrons for a certain atom give off different amounts of energy when they're plucked away from the atom.
I think.