whenever humans exhale carbon dioxide, plants take it in and use it to make a mixture of sunlight and water to create nutrients for itself. Once it creates the nutrients it releases oxygen which us humans use to breathe. This operation is called photosynthesis.
I believe it goes in the following order top down
1 5 3 4 2.