Fact 1: photosynthesis means producers convert from carbon dioxide, water, and solar energy into carbohydrates for themselves. 
Fact 2: Leaf cells produce sugar by photosynthesis.
Sugar is produced by leaf cells as a carbohydrate by producers.