what can you say about the ages of two wild separted layers of rock that contain the same type of fossil

The creatures that made those fossils lived at the same time as the two layers of rocks?