Answer :
Lithium forms a +1 ion because it loses one electron, making the ratio of electrons:protons unbalanced by losing one electron. the ratio is now 2e:3p.
Oxygen forms a -2 ion because of a different reason. It gains 2 electrons rather than losing them.
Oxygen forms a -2 ion because of a different reason. It gains 2 electrons rather than losing them.