The standard electron configuration for magnesium would be
The noble gas one row above magnesium is neon. Neon would have an electron configuration of
This makes the noble gas configuration of magnesium
I hope this is helpful.
Check out this You Tube video.