New study reveals how reptiles divided up the spoils in ancient seas