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 is below.
Q: 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 ?
A: 106491
Rationale: Total people living in the country = born - immigrated = 90171 - 16320 = 106491
Q: For the school bake sale Robin made 42 cupcakes . If she sold 22 of them and then made 39 more , how many cupcakes would she have ?
A:
59