Jamal works at a library shelving books. He has a cart full of books to put away in different sections. In the history section, he shelves 12 books. In the fiction section, he shelves 19 books. In the children's section, he shelves 8 books but finds 4 that were left in the wrong place that he adds to his cart to shelve elsewhere. He still has 16 books to shelve. How many books did he start with in the cart? Let's think first. Chain of thought:
Jamal started with B books in the cart. He had B - 12 books after the history section. He had B - 12 - 19 = B - 31 books after the fiction section. He had B - 31 - 8 + 4 = B - 35 books after the children's section. He still had B - 35 = 16 books to shelve. Thus, he started with B = 16 + 35 = 51 books in the cart.
Therefore, the answer is 51.