The most accurate response to how carbon stored in the bodies of living organisms moves into rocks is: Living organisms decay and become fossil fuels, which eventually become rocks.
This reflects the process through which the carbon from living organisms can ultimately be transferred into sedimentary rock formations over geological timescales after they have been buried and subjected to pressure and heat, forming fossil fuels like coal, oil, and natural gas.