Maya bought a number of books at a sale where each book cost $12. She realized that she was $96 short of the total price, so her friend Emma lent her the money she needed. If Maya had $144 on her, how many books did she buy? Let's think step by step and output the final answer within \boxed{}.
user