The specimens with traits that fit the new environment get more offspring compared to other individuals. The offspring inherits the useful traits of its parent and in turn get more offspring. This eventually leads to the useful trait being found almost everywhere in the population.