In 1-2 sentences, How does carbon stored in the bodies of living organisms move into rocks?

When living organisms die, their bodies decay and release carbon into the atmosphere. Over time, this carbon can be converted into carbonates and stored in rocks through the process of chemical weathering or through the sedimentation of organic material.