Answer:
Soil → Plant
<em> What happens in photosynthesis?</em>
The light is energy. So the plant doesn't convert light to energy, light already is energy. The plant uses the light energy to grow, and to store energy in a different form (like how you eat corn, and gain energy to run and stuff, your body converts the corn to fat so you can use the energy later.)
Now, as for the creation of oxygen, we have to go deeper. In the air there is CO2, which is 2 parts oxygen and one part Carbon. Plants "breathe" it in. From the ground the plants get water, H2O, which is 2 parts Hydrogen and 1 part Oxygen, right? The plant uses the light energy to convert the C02 and H2O into Sugar, C6H1206 (6 Carbons, 12 Hydrogens, 6 Oxygens)
So we see that there must be 12 Hydrogens in the end, but H20+C02 only has 2. That means you need 6 H2O molecules, which fuse with 6 C02 molecules (becuase sugar has 6 carbons as well)
What we get is (6)H2+(6)C+[(6)02+(6)O] which we can algebra into H12+C6+O18. Now we subtract the sugar, which the plant stores (C6H12O6) and we are left with 012, or Twelve Oxygens. Oxygen doesn't like being alone, so we would represent it as 6 oxygen pairs (6)O2. That oxygen gets released back into the air. Boom.