The correct explanation for how carbon stored in the bodies of living organisms moves into rocks is:
Living organisms decay and become fossil fuels, which eventually become rocks.
When organisms die, their remains can be buried and undergo chemical processes over millions of years, transforming them into fossil fuels like coal, oil, and natural gas. These fossil fuels, when subjected to geological processes, can also be incorporated into sedimentary rocks. Other pathways, such as the formation of carbonate minerals from organisms that have calcium carbonate structures (like shells), also contribute to the carbon cycle, but the specific process mentioned refers to the decay of organic matter leading to fossil fuels.