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.

Input: Consider Input: A painter needed to paint 12 rooms in a building . Each room takes 3 hours to paint . If he already painted 4 rooms , how much longer will he take to paint the rest ?

Output: 24

Input: Consider Input: 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 ?

Output: 10

Input: Consider Input: For the school bake sale Paige made pastries . She baked 36 cupcakes and 9 cookies . After the sale she had 4 to take back home . How many pastries did she sell ?
Output: 41