Photosynthesis converts carbon dioxide and water into oxygen and glucose.
Glucose is used as food by the plant and oxygen is a by-product.
Cellular respiration converts oxygen and glucose into water and carbon dioxide.
That should guide you to answer the question whenever you come across it in an essay quiz, assignment, or homework.