J.R. S. answered 02/26/19
Ph.D. University Professor with 10+ years Tutoring Experience
O is in period 2 group 16 so it has 2s2 2p6 or 2-6. The oxide has 2 additional electrons (O2-) so would be 2-8.
Na is in period 3 group 1 so it has 3s1 or 1. The sodium ion (Na+) has lost that one electron to become isoelectronic with neon (Ne).
Al is in period 3 group 13 so it has 3s2 3p1 or 2-1. The Al ion (Al3+) has lost those 3 electrons to become isoelectronic with neon (Ne).