A university student is selecting courses for his next semester. He can choose from 8 humanities courses and 10 science courses. In how many ways can he choose 9 courses if 2 or fewer must be humanities courses?