The Silvergrove Public Library has 8582 books and used a grant to purchase 2647 more books. How many books does the library have now?