Which of the following best describes how plants obtain the materials necessary to perform photosynthesis?