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: A painter needed to paint 6 rooms in a building . Each room takes 5 hours to paint . If he already painted 2 rooms , how much longer will he take to paint the rest ?
Example Output: 20

Example Input: Tom bought 40 tickets at the state fair . He spent 28 tickets at the ' dunk a clown ' booth and decided to use the rest on rides . If each ride cost 4 tickets , how many rides could he go on ?
Example Output: 3

Example Input: The school cafeteria had 38 apples . If they used 20 to make lunch for the students and then bought 28 more , how many apples would they have ?
Example Output:
46

