Neither whales nor pythons have hind legs, but both have internal remnants of legs and hip bones. Based on this evidence, which of the following most likely occurred in snakes and whales?

They developed new adaptations for transportation.
They evolved a way to shed their legs during development.
They evolved from ancestors that walked.