In photosynthesis, glucose and oxygen is produced from carbon-dioxide and water. This oxygen produced is used during cellular respiration to produce ATP which is used as the source of energy by the cell. During respiration, carbon-dioxide and water is formed which then serves as ingredients for photosynthesis.