6CO + 6H2O = C6H12O6 + 6O2. Oxygen and water are the by-products of photosynthesis, thus the plant transpires water from the leaves and releases oxygen to the atmosphere(which is why plants are good in an area with much carbondioxide).