Maria is planning to buy new books for her library. Each book costs $15. She also wants to buy some bookshelves, and each bookshelf costs $50. If Maria has $500 to spend, how many books can she buy if she decides to purchase 2 bookshelves? Let's think step by step and output the final answer within \boxed{}.
user