The answer is; The rock layers must have formed at different times because they contain two different biozones
The rock layer with amniotes formed later after the rock layer with trilobites. This is beaus the former layer is younger in age than the latter layer. The ages of rocks is determined by absolute dating.