Given a math word problem, answer the following question. You might need to apply addition or subtraction mathematical operators on the numbers embedded in the text to answer the question and then only report the final numerical answer.
One example is below.
Q: robin bought 11 sodas for her and her friends . if they only drank 3 of them how many extras did she have ?
A: 8
Rationale: Extra sodas is total - drank = 11-3 = 8
Q: if he spent a total of $ 700 and all the gifts cost a total of $ 561 how much money did he spend on giftwrapping and other expenses ?
A:
139