What rule do atoms that tend to combine in such a way that they have eight electrons in their valence shell follow ?
In carbon dioxide each oxygen shares four electrons with the central carbon , two ( shown in red ) from the oxygen itself and two ( shown in black ) from the carbon .