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

Example Input: Problem: income and expenditure of a person are in the ratio 7 : 6 . if the income of the person is rs . 14000 , then find his savings ?
Example Output: 2000

Example Input: Problem: a certain kind of necklace is made from 9 green , 6 white , and 3 orange beads . what is the maximum number of these necklaces that can be made from 45 beads of each color ?
Example Output: 5

Example Input: Problem: 9 . on level farmland , two runners leave at the same time from the intersection of two country roads . one runner jogs due north at a constant rate of 8 miles per hour while the second runner jogs due east at a constant rate that is 8 miles per hour faster than the first runner ' s rate . how far apart , to the nearest mile , will they be after 1 / 2 hour ?
Example Output: