Step-by-step explanation:
Oxygen has atomic number eight. This means that the nuclei of all oxygen atoms have eight protons. A neutral oxygen atom will also have eight electrons.
In an oxygen ion with a
2
−
charge, the number of protons is still 8, but the number of electrons is 10.
This results in the oxygen ion having an octet (8) of valence electrons.