instruction:
You are given a math word problem and you are supposed to apply multiple mathematical operators like addition, subtraction, multiplication or division on the numbers embedded in the text to answer the following question and then only report the final numerical answer.
question:
Grace has 16 jellybeans in her pocket . She has 8 red ones , 4 green ones , and 4 blue ones . What is the minimum number of jellybeans she must take out of her pocket to ensure that she has one of each color ?
answer:
13


question:
The cafeteria had 86 apples . For lunch they handed out 30 to students and decided to use the rest to make pies . If each pie takes 8 apples , how many pies could they make ?
answer:
7


question:
Adam had 33 books . If he sold 11 of them and used the money he earned to buy 23 new books , how many books would Adam have ?
answer:

45