blake just purchased a total of 12 books and magazines for his office. the total bill was $112. he spent $16 on magazines, and the books cost $12 each. how many books did she buy.