The correct electronic configuration of Mg is:

IMG_20191209_212252

Answer: (B) 1s2, 2s2, 2p6, 3s2