(a) (i) Forelimbs of whales and bats and (ii) thorns of Bougainvillea and tendrils of Cucurbita are homologous structures. [1]
(b) These structures are fundamentally the same but have different functions due to adaptations to different needs. This kind of evolution is called divergent evolution. [1]