The x number in ^x indicates the number of electronics in an obit, e.g. 1s^2 means there are 2 electrons in the 1s orbit.
Total number of electrons in A = 2 + 2 + 6 +2 + 6 + 2 + 2
= 22
VALENCE electrons are those in the outer most shell.
In A, there are 4s^2 + 4p^2: 2 + 2 = 4
Answer should be C instead. So sorry for the mistake earlier!
Example A: 1s^2 2s^2 2p^6 3s^2 3p^6 4s^2 4p^2
counting e-: 2 2 6 2 6 2 2
2+2+6+2+6+2+2 = 22
ans is A. 22