The right answer is CO2, H2O, and light.
Photosynthesis is a conversion of light energy from the sun into chemical energy. This photonic biosynthesis of a carbohydrate is made from carbon dioxide CO2, water H2O, by means of light energy (from the sun).