Solution:
Concept: The M shell starts filling only after the K shell (2) and the L shell (8) are full. Atoms with 6 valence electrons gain 2 electrons.
Step 1 — (a) Configuration.
6 electrons in M means 2, 8, 6.
Step 2 — (b) Atomic number.
Add the electrons in all shells:
Atomic number=2+8+6=16
Step 3 — (c) Metal or non-metal.
With 6 valence electrons it gains electrons rather than losing them, so it is a non-metal.
Step 4 — (d) Ion formed.
It gains 2 electrons to complete its octet and forms a negative ion (anion), A2−.
Step 5 — (e) Identify A.
The element with atomic number 16 is sulphur; its ion is S2−.
Step 6 — (f) Draw the atom and its ion.
The sulphur atom (16p, 16n) is 2, 8, 6:

The sulphide ion has gained 2 electrons (crosses) and is 2, 8, 8:

Therefore, A is sulphur: 2, 8, 6, atomic number 16, a non-metal forming the anion A²⁻ (S²⁻).