each process makes what the other needs
photosynthesis uses water and carbon dioxide and it makes glucose and oxygen. cellular respiration uses glucose and oxygen and make water and carbon dioxide.
as well as, photosynthesis builds sugars that respiration breakdown.