If Miles wants to write the equation for photosynthesis, he should write the following equation: carbon dioxide (CO2) + water (H2O) ---> glucose (C6H12O6) + oxygen (O2). In the process of photosynthesis, plants use the energy of Sunlight to turn carbon dioxide and water into the chemical energy stored in glucose and oxygen is released: carbon dioxide + water ---> glucose + oxygen.