The reduction of six CO2 in photosynthesis requires 24 e- , producing one C6H12O6 and six H2O. Twelve H2O must be oxidized through photolysis to generate these 24 e-. This produces six O2.
To reduce the carbon in CO2, four e- are required. One oxygen atom is separated from the carbon, forming one H2O by gaining one e- and two H+. The carbon atom is reduced, gaining one e- and one H+, and the oxygen remaining with the carbon gains one e- and one H+..