The Nebular Hypothesis is the most accepted explanation of the origin of our solar system. It states that the Sun was formed by a massive cloud of dust and gas light-years across, and it was bigger than the actual sun itself. Most of the mass in the center formed the sun, and the rest expanded outward.
Answer is:
Photosynthesis transforms light energy into chemical energy. Cellular respration releasses the carbon dioxide from food into the air.
hope this helps :)