Explanation:
Lewis structure of carbon dioxide: This figure explains the bonding in a CO2 molecule. Each O atom starts out with six (red) electrons and C with four (black) electrons, and each bond behind an O atom and the C atom consists of two electrons from the O and two of the four electrons from the C.