How are carbon rich sedimentary rocks created?
CO2 diffuses from the atmosphere into oceans.
Marine organisms make their shells and skeletons by fixing dissolved carbon with calcium to form calcium carbonate.
When they die their remains sink to the ocean floor
They accumulate and over millions of years heat and pressure convert them into carbon rich sedimentary rocks.