The anwser is number 2 I think,
Hope it helps!
photosynthesis produces oxygen and glucose as the end products whereby the glucose is used as food by plants and oxygen as a byproduct.
cellular respiration produces water and carbon dioxide and the end products and by products where by energy is stored