What you were taught
Most of the oxygen we breathe comes from trees
What we know now
Trees produce oxygen, but they are not the main global source. Scientists estimate that roughly half or more of Earth's oxygen production comes from the ocean, mainly from phytoplankton. Marine life also consumes a large share of that oxygen, so production and leftover air are not the same claim.
Updated understanding emerged around 2020