First fix the configurations. A has one electron in the third shell, so the first two shells must be full: A = 2, 8, 1 (Z = 11, sodium). B has six electrons in the second shell: B = 2, 6 (Z = 8, oxygen).
(i) A gives away 1 electron. Removing its single M-shell electron leaves 2, 8 — a complete octet. Taking seven electrons instead would be far harder.
(ii) A forms a monovalent cation, A⁺.
A⁺: 11 protons (+11), 10 electrons (−10) → net charge +1
(iii) B takes 2 electrons. With six valence electrons it is two short of an octet; gaining two is much easier than losing six.
(iv) B forms a divalent anion, B²⁻ (configuration 2, 8).
(v) An ionic bond. One element hands electrons over and the other accepts them, so this is a transfer, not a sharing. The oppositely charged ions that result are then held together by electrostatic attraction.
(vi) A₂B.
2 A⁺ + B²⁻ → A₂B (in real terms, Na₂O — sodium oxide)
Charge check: 2(+1) + (−2) = 0 ✓