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 paper bag can hold 16 cookies . if edgar buys 292 cookies how many paper bags does he need ?
Example output: 18.25
Example explanation: number of paper bags = 292/16 = 18.25 bags
Q: rachel bought 7 new chairs and 3 new tables for her house . if she spent 4 minutes on each piece furniture putting it together how many minutes did it take her to finish ?
A:
40