The thorn of Bougainvillea and the tendril of Cucurbita are examples of
Homologous organs
Homologous organs are the organs which exhibit anatomical similarities but perform different function.
The thorn of Bougainvillea and the tendril of Cucurbita are modifications of stem. Both arise from the axillary bud. Thorns provide protection to plants, while tendrils provide support to the climbing plant.