OpenStax Biology 2e
Photosynthesis is a multi-step process that requires specific wavelengths of visible sunlight, carbon dioxide (which is low in energy), and water as substrates. After the process is complete, it releases oxygen and produces glyceraldehyde-3-phosphate (G3P), as well as simple carbohydrate molecules (high in energy) that can then be converted into glucose, sucrose, or any of dozens of other sugar molecules. These sugar molecules contain energy and the energized carbon that all living things need to survive.
The following is the chemical equation for photosynthesis:
Clark, M., Douglas, M., Choi, J. Biology 2e. Houston, Texas: OpenStax. Access for free at: https://openstax.org/details/books/biology-2e