A humpback whale is classified as a mammal while a basking shark is a fish. Which taxonomy classification are the same for a humpback whale and a basking shark?

Both a humpback whale and a basking shark are classified as Chordata, which is a phylum of animals that have a notochord, a hollow dorsal nerve cord, pharyngeal slits, and an endostyle.