contestada

Suppose you find a rock with a goniatite fossil and another rock with an ammonite fossil? Which rock is older? How do you know?