Soln:
Answer is 2, 8, 2
Explanation :
Atomic number of Mg is 12 hence electronic distribution will be 1s22s22p63s2.