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: 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: Sam got 9 pennies for washing clothes , and 7 quarters for mowing lawns . How much money does Sam have ?
Example Output: 1.84

Example Input: Will bought 7 boxes of chocolate candy and gave 3 to his little brother . If each box has 4 pieces inside it , how many pieces did Will still have ?
Example Output:
16