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 read 3 chapters of a book . if each chapter was 8 pages how many pages did he read ?
Example Output: 24

Example Input: a contractor was buying wall outlets for a new house he was building . each room needed 6 outlets . if the house has 7 rooms how many outlets does he need total ?
Example Output: 42

Example Input: matthew had 27 crackers . if matthew gave equal numbers of crackers to his 9 friends how many crackers did each person eat ?
Example Output:
3

