Which of the following is the correct electron configuration for a ground-state atom of magnesium (atomic number 12)
A)1s2 2s2 2p8
B)1s2 2s2 3s2 3p6
C)1s2 2s2 2p6 3s2
D)1s2 2s2 3s4 3p4