Each species has evolved through natural selection to be adapted to its environment. What will happen to polar bears as global warming melts their icebergs?
The genes from one generation are passed on to the next generations.
Animal P lives on icebergs, due to which it cannot survive in green lands. It has claws that are suitable for preying on fish and providing them with the nutrition required to survive the harsh environment of region A.
As a result, they will not be able to feed on grass and other such things that might be available to them in green lands because their claws are not built for that. They cannot adapt to the changing climate and will eventually be eliminated by the process of natural selection.
However, if animal P somehow manages to survive in these situations, there are chances that their future generations will also adapt themselves in the existing environment. According to the principle of natural selection, the genes that help the first generation to survive will pass on to the next generations.
Due to global warming, the ice of region A is increasingly melting each passing year, which will soon result in the melting of the icebergs. Since animal P is lives on icebergs, it cannot adapt to green lands, which might further result in the extinction of the species.