Answer: This element has +2 charge on it.
Explanation:
An ion is formed when an atom looses or gains electrons.
Magnesium is the 12th element of the periodic table having electronic configuration of [tex]1s^22s^22p^63s^2[/tex]
This element will loose 2 electrons to attain stable electronic configuration and leads to the formation of a cation having formula [tex]Mg^{2+}[/tex]
Hence, this element has +2 charge on it.