Water is the only substance that appears in both photosynthesis (as a reactant) and respiration (as a product). In photosynthesis: 6CO2 + 6H2O → glucose + 6O2. In respiration: glucose + 6O2 → 6CO2 + 6H2O. Oxygen is only produced in photosynthesis, CO2 only in respiration.