Answer
The first oxygen will have 2 lone pairs, and the second will have 3.
Work Step by Step
For the Oxygen 1:
1. Find the amount of electrons that the atom has:
An oxygen with a neutral formal charge has 6 electrons on the valence shell.
2. Calculate the difference between this number and the number of bonds.
6 electrons - 2 bonds = 4 free electrons
4 free electrons = 2 lone pairs
For the Oxygen 2:
1. Find the amount of electrons that the atom has:
An oxygen with a negative formal charge has 7 electrons on the valence shell.
2. Calculate the difference between this number and the number of bonds.
7 electrons - 1 bonds = 6 free electrons
6 free electrons = 3 lone pairs