How do you know that photosynthesis was produces during cell respiration?

How do you know that photosynthesis was produces during cell respiration?