Where this goes wrong
Reading "lost" as negative. Mg loses 2 e⁻, leaving 12 p⁺ and 10 e⁻: charge 12 − 10 = 2+. The particles lost were the negative ones. Losing electrons always leaves a positive ion.
Charging the nucleus. A 2+ charge never comes from added protons: 12 protons is magnesium, 14 is silicon. Ion formation moves electrons only.
Naming the element from the electrons. Na⁺, Mg²⁺, and O²⁻ each hold 10 electrons, and none is neon. Protons identify the element.
Counting electrons into the mass number. Only nucleus particles count: ²⁴Mg²⁺ keeps mass number 12 + 12 = 24, with 12 electrons or with 10.