So plants use photosynthesis to take in carbon dioxide and give out oxygen, but it doesn't directly convert the two.
That oxygen actually comes from water, and because Earth is a closed system, a lot of water molecules have been water molecules for a long, long time until a plant picks them up. A lot of them are drunk by animals in the meantime.
Dinosaurs were on Earth for 179 million years. So it's very likely that some of the oxygen atoms you're breathing right now were once dinosaur pee.
Incidentally, there are (very approximately) 46 billion trillion trillion trillion water molecules on Earth. 🌍
Sunbeam City is a anticapitalist, antifascist solarpunk instance that is run collectively.