You're not bad at using your logic to deduce and understand the laws that govern groups of items and ideas together. This is an important cognitive tool we use every day without even thinking about it, and it's important to see that your brain is healthy and able to do it.
For the process of photosynthesis, plants need carbon dioxide while animals only need oxygen. That said, animals can't CREATE oxygen like plants do.