Birds with the wrong types of beak would have gradually died out. On an island with different conditions a slightly different sort of finch would evolve. Over long periods of time the birds’ beaks became better and better adapted to their environment. The varying environments on different islands meant that the birds that thrived were the ones best suited to that place.
What does the word "varying" mean? I think it has the same meaning with "different", is it right?