Which came first?

Certain fossils are found only at specific times. We can use these fossils to tell when in time the rock layer formed.
An illustration of rock layers representing different geological periods. The layers contain many of the same small common fossils as well as rarer fossils.