First of all, magnesium is a metal so it would lose electrons as it has less than 4valence electrons
as it has atomic no. 12 so its electronic configuration would be (2,8,2)
so there are 2valence electrons and so
it would lose 2electrons to attain stability
as it has atomic no. 12 so its electronic configuration would be (2,8,2)
so there are 2valence electrons and so
it would lose 2electrons to attain stability