A researcher wanted to estimate the average amount of money spent on extracurricular activities per school in a certain region. The researcher randomly selected 20 public schools and 20 private schools in the region to be used in the sample. Which of the following best describes the type of sample that was taken?
A. A census
B. A cluster sample
C. A convenience sample
D. A simple random sample
E. A stratified random sample