Oxygen, which is liberated during photosynthesis comes from H2O.CO2, reduced to form carbohydrate during photosynthesis.
Chlorophyll is 'Mg' containing green pigment which helps in photosynthesis.
Phosphoglyceric acid is the first stable product of photosynthesis in C3 plants. 4H2O⇌4H++4OH− 4OH−MnX+,ClX−2H2O+O2↑+4e−