(a)
- X has three unpaired electrons in 4p, so it is 4p3. That gives 33 electrons: arsenic, As (Z=33): 1s22s22p63s23p63d104s24p3.
- Y has six unpaired electrons in period 4. This is possible only as 3d54s1 (five unpaired 3d electrons plus one 4s), which is chromium, Cr (Z=24): 1s22s22p63s23p63d54s1.
- Z has a full 3d and a single n=4 electron, 3d104s1. This is copper, Cu (Z=29): 1s22s22p63s23p63d104s1.
(b) Valence diagrams (the [Ar] core is not shown):

Unpaired electrons: Cr has 6 (five 3d and one 4s), As has 3 (three 4p, filled in separate orbitals with parallel spins by Hund's rule), and Cu has 1 (the 4s electron). Attraction into a magnetic field increases with the number of unpaired electrons, so the order is Cr > As > Cu.
(c) Electrons in the n=3 shell (3s+3p+3d):
- As: 3s23p63d10, which is 18
- Cu: 3s23p63d10, which is 18
- Cr: 3s23p63d5, which is 13
As and Cu both have 18 electrons in the n=3 shell, a completely filled third shell. Cr has fewer because its 3d subshell is not yet full: at Cr (Z=24), 3d is still being filled. Since 4s and 3d are so close in energy, the arrangement 3d54s1 (a half-filled 3d) is preferred, leaving only 5 electrons in 3d.