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

Example Input: Problem: the ratio of three numbers is 2 : 3 : 4 and their sum is 180 . the second number of the three numbers is ?
Example Output: 60

Example Input: Problem: john invests $ x at the semi - annual constant compounded rate of 2 percent and also does $ 20,000 at the quarterly constant compounded rate of 4 percent . if the interests are the same after 1 year , what is the value of x ? ?
Example Output: 40,402

Example Input: Problem: a train running at the speed of 60 km / hr crosses a pole in 7 sec . what is the length of the train ?
Example Output:
116.6