Wallace has a $500 budget for a pizza party. Pizza pies cost $12 each. He will also purchase drinks for $30, paper plates for $15 and napkins for $6. Write and solve an inequality that shows how many pizza pies Wallace can purchase.