Both A and B - The ocean plays a crucial role in the carbon cycle as it both absorbs carbon dioxide from the air and releases it back into the atmosphere through various processes such as respiration and decomposition. Additionally, the ocean stores billions of tons of carbon in the form of dissolved inorganic carbon within its depths.