Plants, through photosynthesis, take in carbon dioxide and release oxygen as a byproduct