Final answer:
Photosynthesis and cellular respiration are complementary processes with reciprocal reactions; one's products are the other's reactants, together balancing Earth's oxygen and carbon dioxide.
Step-by-step explanation:
While photosynthesis takes in carbon dioxide and water to produce glucose and oxygen, cellular respiration uses glucose and oxygen to produce carbon dioxide and water. This can be illustrated by the fact that the chemical reaction for photosynthesis,

is essentially the reverse of the reaction for cellular respiration,

These complementary processes form a cycle that maintains the balance of oxygen and carbon dioxide in the Earth's atmosphere.