The correct option is C Sedimentary rocks
Fossils are dead remains of plants and animals buried inside the earth's crust millions of years ago. Most of the rocks exposed at the surface of Earth are sedimentary, formed from particles of older rocks that have been broken apart by water or wind. The gravel, sand, and mud settle to the bottom in rivers, lakes, and oceans. These sedimentary particles may bury living and dead animals and plants on the lake or sea bottom. With the passage of time and the accumulation of more particles, and often with chemical changes, the sediments at the bottom of the pile become rock. Gravel becomes a rock called conglomerate, sand becomes sandstone, mud becomes mudstone or shale, and the animal skeletons and plant pieces can become fossils. New sedimentary rocks get deposited above older ones and hence, they record the fossils of organisms accordingly (older fossils being in the deeper rock layers and younger fossils in the upper layers).