Which of the following correctly compares the cycle of gases in cellular respiration and photosynthesis?

A. Photosynthesis produces oxygen and consumes carbon dioxide; cellular respiration produces carbon dioxide and consumes oxygen.

B. Photosynthesis produces oxygen and carbon dioxide; cellular respiration consumes oxygen and carbon dioxide.

C. Photosynthesis consumes oxygen and carbon dioxide; cellular respiration produces oxygen and carbon dioxide.

D. Photosynthesis produces oxygen and carbon dioxide; cellular respiration produces oxygen and carbon dioxide.