In period 3 the outer electrons enter 3s and then 3p. Two unpaired electrons are possible only as 3p2 (two single electrons, by Hund's rule) or 3p4 (one pair and two single electrons).
- 3p2: 1s22s22p63s23p2, which is silicon (Z=14). Electrons with l=1: 2p6+3p2=8.
- 3p4: 1s22s22p63s23p4, which is sulphur (Z=16). Electrons with l=1: 2p6+3p4=10.
A has fewer l=1 electrons, so A = Si (the chip material) and B = S (used to vulcanise rubber).