- K$^{+}$: Atomic number of K is 19. K$^{+}$ has lost one electron, so it has 19 - 1 = 18 electrons. - Mg$^{2+}$: Atomic number of Mg is 12. Mg$^{2+}$ has lost two electrons, so it has 12 - 2 = 10 electrons. - S$^{2-}$: Atomic number of S is 16. S$^{2-}$ has gained two electrons, so it has 16 + 2 = 18 electrons. - P$^{3-}$: Atomic number of P is