You're describing one form of carbon offsets. A cap & trade system is pretty much what you're suggesting, depending on the specific implementation of a cap&trade system.
https://en.wikipedia.org/wiki/Carbon_offset#Land_use.2C_land...
https://en.wikipedia.org/wiki/Carbon_offset#Land_use.2C_land...