You are given a math word problem and you are supposed to apply addition or subtraction mathematical operators on the numbers embedded in the text to answer the following question and then only report the final numerical answer.
One example: Last year , 90171 people were born in a country , and 16320 people immigrated to it . How many new people began living in the country last year ?
Solution is here: 106491
Explanation: Total people living in the country = born - immigrated = 90171 - 16320 = 106491

Now, solve this: Nancy picked 12 carrots from her garden . If she threw out 2 of them and then picked 21 more the next day , how many carrots would she have total ?
Solution:
31