Samuel bought 30 books. The hardcover books cost 20 dollars while the paper back books cost 8 dollars. If the total amount of books costed 480 dollars, how many passer back books were purchased?