At a medical clinic, the average waiting time for the first 10 patients was 15 minutes and the next 15 patients, 20 minutes. What was the average waiting time for all the patients?