(a) Calcium: 2, 8, 8, 2. Oxygen: 2, 6.
Two electrons are transferred, from the calcium atom to the oxygen atom. Calcium has two electrons in its outermost shell and loses both; oxygen has six and needs two more.
The numbers match exactly, which is why one calcium atom combines with one oxygen atom and the formula is CaO.
(b) The calcium ion, Ca2+, carrying a charge of 2+; and the oxide ion, O2−, carrying a charge of 2–.
Note that calcium becomes positive by losing electrons and oxygen negative by gaining them — the atom that gives electrons away ends up positive.
(c) Because each has now reached a stable octet — eight electrons in its outermost shell.
Losing two electrons leaves calcium as 2, 8, 8, and gaining two leaves oxygen as 2, 8. In both the outermost shell is complete, matching the nearest noble gas, and an atom with a full outer shell has no tendency to gain or lose further electrons. Reaching that arrangement is the reason the transfer happened in the first place.

Calcium gives two electrons to oxygen: both ions end with a complete outer shell.