Well, when a plant or animal dies in a damp environment it will most likely get buried in mud or silt. The tissues over time will decompose and leave bones or shells behind ( depending on what was there originally it can vary) Eventually over time sediment builds up and hardens into rock.
I sincerely hope this helps you ~
Carbohydrates!!! im not sure how to explain it but i just knew the answer so good luck hope that kinds helped
Do you have a picture? It would really help answer your question