The task is to generate the correct answer for a given math problem.

Example Input: Problem: virginia , adrienne , and dennis have taught history for a combined total of 96 years . if virginia has taught for 9 more years than adrienne and for 12 fewer years than dennis , for how many years has dennis taught ?
Example Output: 4

Example Input: Problem: the average of first 22 natural numbers is ?
Example Output: 11.5

Example Input: Problem: $ 9,000 is deposited in a savings account that pays 14 % annual interest compounded semiannually . to the nearest dollar , how much is in the account at the end of the year ?
Example Output:
$ 10304.10