a small town library buys a total of 35 books that cost $462. Some of the books cost $12 each and the remainder cost $14 per book. How many books of each price did the library buy?