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: Each chocolate bar in a box cost $ 4 . If a box had 8 bars total and Emily sold all but 3 bars , how much money would she have made ?
Example Output: 20

Example Input: Chloe baked 7 brownies , but needed 16 total for her party . If she used 6 cups of flour on each one , how much cups of flour does she still need ?
Example Output: 54

Example Input: Will invited 9 friends to a birthday party , but 4 could n't come . If he wanted to buy enough cupcakes so each person could have exactly 8 , how many should he buy ?
Example Output:
40