Read this and you will be good.
The main product of photosynthesis is glucose, which is the molecule that produces energy to run the processes of the cell. Oxygen is mainly a byproduct of the process of photosynthesis. Six molecules of carbon dioxide and six molecules of water are needed to produce one molecule of glucose. There you go!!!