Photosynthesis and cellular respiration both involve the gases carbon dioxide and oxygen. Which statement best identifies how these gases are involved in the two processes?