The chemical reaction for photosynthesis is

$$ \ce{6CO2 + 12 H2O + light energy -> C6H12O6 + 6O2 + 6H2O} $$

If the input water is labeled with a radioactive isotope of oxygen, \(\ce{^{18}O}\), then the oxygen gas released as the reaction proceeds is also labeled with \(\ce{^{18}O}\). Which of the following is the most likely explanation?