The processes of cellular respiration and photosynthesis are often called mirror processes. The reactions are exact opposites of each other.
Take a look at both of the equations.
Cellular Respiration Photosynthesis
C6H12O6 + 6O2 → 6CO2 + 6H2O + 36ATP 6CO2 + 6H2O → C6H12O6 + 6O2
You will notice that the reactants in cellular respiration are the products in photosynthesis. Likewise, the reactants in photosynthesis are the products in cellular respiration. Furthermore, where food is produced in photosyntheis (glucose - C6H12O6 ), it is consumed in cellular respiration. Energy is stored in photosynthesis and is released in cellular respiration.