instruction:
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.
question:
while playing a trivia game team a scored 2 points team b scored 9 points and team c scored 4 points . how many points were scored total ?
answer:
15

question:
cody had a bag of marbles . later he gave 5 to his brother . now cody has 7 marbles . how many marbles did cody have to start with ?
answer:
12

question:
faye and her mom were picking carrots from their garden . faye picked 23 and her mother picked 5 if only 12 of the carrots were good how many bad carrots did they have ?
answer:
16