How does carbon trading work?

How does carbon trading work?