Trees take in carbon and give out / off oxygen
الأجابتين صح بدليل قاموس Longman
give off something (phrasal verb)to produce a smell, light, heat, a sound etc
The wood gave off a sweet, perfumed smell as it burned
give out something to produce something such as light, heat, or a signal [= emit]:
A gas lamp gave out a pale yellowish light.