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:
John had 5 action figures , but needed 7 total for a complete collection . If each one costs $ 5 , how much money would he need to finish his collection ?
answer:
10


question:
The cafeteria had 47 apples . For lunch they handed out 27 to students and decided to use the rest to make pies . If each pie takes 4 apples , how many pies could they make ?
answer:
5


question:
Frank and his friend were buying trick decks from the magic shop for 7 dollars each . How much did they spend if Frank bought 3 decks and his friend bought 2 decks ?
answer:

35