Scientists have discovered a new species of ancient animal that lived approximately 240 million years ago.