Answer:
Trees and including all plants use the energy of sunlight and including the process of photosynthesis they take with the carbon dioxide or know as ( CO2) from the air and water from the ground. In this process of converting this into wood they can relase oxygen into the air.
I hope this helps you .