Amanda has a bookcase with 30 books. There are 3 shelves in the bookcase. Each shelf has the same number of books. How many books does each shelf have?