well, they are carbon dioxide, and water are used to make sugar and oxygen.
Oxygen and glucose
Carbohydrates and Oxygen
So when photosynthesis happens the carbon dioxide reacts with the Water by sunlight creating sugar and oxygen.
Two waste products of photosynthesis are O2 ( oxygen) and water.