The correct electronic configuration of 24Mg
12 is:

1s2,2s2,2p6,3s2,3p6,4s1,3d5

1s2,22,2p6,3s2

1s2,2s2,2p6,3s2,3p6,4s2,3d4