(a) A3+ has 20 electrons, so A has 20+3=23: vanadium.
A (V): 1s22s22p63s23p63d34s2
A3+ (V3+): the two 4s electrons are lost first, then one 3d electron, giving [Ar]3d2. By Hund's rule the two 3d electrons occupy separate orbitals: 2 unpaired electrons.
(b) Electrons with l=0 in a period-4 atom: 1s22s23s24s2=8 (only 7 for K, Cr and Cu, which have 4s1). For B, the l=2 electrons number 8−3=5, so 3d54s2: [Ar]3d54s2, which is manganese (Z=25). Checking the 4s1 atoms, which would need 7−3=4 electrons with l=2: K has 0, Cr has 5 and Cu has 10, so none fits and Mn is the only answer. 3d5 has one electron in each of the five 3d orbitals: 5 unpaired electrons.
(c) C2− has 36 electrons (as many as Kr), so the neutral atom has 36−2=34: selenium, [Ar]3d104s24p4. In 4p4 one orbital is paired and two are singly filled: 2 unpaired electrons.

(d) Any 3d electron of Mn has n=3 and l=2. One possible set is n=3, l=2, ml=−1, ms=+21. Any ml from −2 to +2 is acceptable, and all five 3d electrons have the same (parallel) spin.
Attraction to a magnet increases with the number of unpaired electrons: Mn has 5, while V3+ and Se have 2 each. B (Mn) is attracted most strongly.