Fact 1: photosynthesis means producers convert from carbon dioxide, water, and solar energy into carbohydrates for themselves. 
Fact 2: Photosynthesis is the conversion of electromagnetic energy into stored chemical energy.
Conversion of eletromagnetic energy into carbohydrates creates a stored chemical energy.