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.

Example Input: The cafeteria had 50 apples . For lunch they handed out 5 to students and decided to use the rest to make pies . If each pie takes 5 apples , how many pies could they make ?
Example Output: 9

Example Input: Benny goes to lunch with Sally and Sandy . The total bill came to 15 dollars . They decided to equally split up the bill , how much will each person have to pay ?
Example Output: 5

Example 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 ?
Example Output:
24