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

Example Input: Problem: tim came second in math . when his mother asked him how much he had scored , he answered that he got the sum of the first 12 even numbers . his mother immediately worked out the answer . how much had he scored in math ?
Example Output: 156

Example Input: Problem: if p / q = 3 / 11 , then 2 p + q = ?
Example Output: 17

Example Input: Problem: evaluate : 40 - 12 * 3 * 2 = ?
Example Output:
32