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 process involves the decomposition of organic matter and the transformation of these materials over geological time into fossil fuels, which can be incorporated into sedimentary rocks.