What occurs during photosynthesis?

Carbon dioxide and water combine to form sugar.
Sugar breaks down into water and oxygen.
Sugar and water combine to form carbon dioxide.
Carbon dioxide breaks down into sugar and oxygen.