6. (10 points) Use 40 yuan to buy three types of exercise books priced at 2 yuan, 5 yuan, and 11 yuan each. You must buy at least one of each type, and the money must be exactly spent. How many different ways are there to buy the exercise books? $\qquad$ kinds.