Whales, lizards, humans, and birds all have the same basic limb layout. But how did such different animals wind up with the same sort of limb?
The answer is that they inherited it from a common ancestor, just as cousins might inherit the same trait from their grandfather.
This evolutionary tree shows the relationships between different tetrapod lineages, all of which evolved from a single common ancestor. This 350 million year old animal, the first tetrapod, had limbs with one long bone (the humerus) attached to two other long bones (the radius and ulna).