Percy delivers pizzas for pizza king. He is paid $6 an hour plus $2.50 for each pizza he delivers. Percy earned $280 last week. If he worked a total of 30 hours, how many pizzas did he deliver?