The correct option is B (2, 8, 2)
The total number of electrons present in Magnesium atom is 12.
The distribution of electrons in magnesium atom is given by:
First orbit or K shell =2(2n2=2×11=2)
Second orbit or L shell =8(2×22=8)
Third orbit or M shell =2(12−2−8=2)