Answer
6, 2
Work Step by Step
Oxygen is in group 6, so it has 6 valence electrons. When it doubles bonds, it is able to share four electrons, with two of the electrons being from the other atom. This adds up to 8 valence electrons, which gives oxygen the full valence shell. Thus, oxygen has 6 valence electrons and generally has 2 bonds in compounds.