TASK DEFINITION: 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.
PROBLEM: ryan collected 89 leaves . he lost 24 leaves . after a while 43 more leaves broke . how many leaves are left in his collection ?

SOLUTION: 22

PROBLEM: there are 28 students in mrs. riley 's class but she only has 19 pencils . how many more pencils does mrs. riley need ?

SOLUTION: 9

PROBLEM: the group then went on to check out the houses along broadway street and the scary werewolf avenue . after the long walk they decided to count their candy again . if mary has 5 chewing gums sam has 10 chewing gums and sue has 15 chewing gums how many chewing gums did the 3 have in all ?

SOLUTION:
30