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

Example Input: Problem: two trains , a and b , started simultaneously from opposite ends of a 125 - mile route and traveled toward each other on parallel tracks . train a , traveling at a constant rate , completed the 125 - mile trip in 12 hours ; train b , traveling at a constant rate , completed the 125 - mile trip in 8 hours . how many miles had train a traveled when it met train b ?
Example Output: 5

Example Input: Problem: a jar of 364 marbles is divided equally among a group of marble - players today . if 2 people joined the group in the future , each person would receive 1 marble less . how many people are there in the group today ?
Example Output: 26

Example Input: Problem: in 1998 the profits of company n were 10 percent of revenues . in 1999 , the revenues of company n fell by 20 percent , but profits were 20 percent of revenues . the profits in 1999 were what percent of the profits in 1998 ?
Example Output:
160 %