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.

Example Input: Fred has 40 baseball cards . Keith bought 22 of Fred 's baseball cards . How many baseball cards does Fred have now ?
Example Output: 18

Example Input: A florist had 50 roses . If she sold 15 of them and then later picked 21 more , how many roses would she have ?
Example Output: 56

Example Input: A pet store has 6 bird cages . If each cage has 2 parrots and 7 parakeets in it , how many birds does the pet store have total ?
Example Output:
54