Which of the following best describes how farming came to be?