Mr.Abad earned $30,000 last year. He must pay taxes of 10% on earnings up to $8,500, and he must pay taxes of 15% on the rest or his income. What is the total amount he must pay in taxes for his earnings last year, including the takes on his first $8,500 and on the rest of his earnings?