Each piece of candy in a store costs a whole number of cents. David has exactly enough money to buy either 8 pieces of chocolate candy, 12 pieces of caramel candy, or 18 pieces of mint candy. A piece of gummy candy costs 9 cents. What is the smallest possible value of if David can buy pieces of gummy candy?
6
7
8
9
10