The answer to your question is the atmosphere and the hydrosphere
This is because the atmosphere and hydrosphere are linked because the ocean dissolves carbon dioxide from the air, but also releases it. The amount of carbon dioxide in the two spheres reaches some sort of equilibrium depending on many different factors.