6 water water molecules are oxidized, and become the source of electrons for carbon dioxide reduction. 6 molecules of carbon dioxide are required, one for each carbon atom in glucose. 6 molecules of oxygen are produced as a by product of water oxidation. Sunlight provides the free energy needed to make the endergonic pathway proceed.