The ammonite's shell was presumably picked up and preserved after the resin fell off a tree and tumbled across the seashore.
The ammonite's shell was likely gathered and kept after the resin detached from a tree and rolled along the beach.