Which of the following statements explains the theory of natural selection?