Question: how do we know that whales evolved from land mammals?
Answer: Both hippos and whales evolved from four-legged, even-toed, hoofed (ungulate) ancestors that lived on land about 50 million years ago. ... Unlike the hippo's ancestor, whale ancestors moved to the sea and evolved into swimming creatures over a period of about 8 million years.