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

Input: Consider Input: Problem: two trains travel in opposite directions at 36 kmph and 45 kmph and a man sitting in slower train passes the faster train in 12 seconds . the length of the faster train is

Output: 270 m

Input: Consider Input: Problem: a is twice as good a workman as b and they took 6 days together to do the work b alone can do it in .

Output: 18 days

Input: Consider Input: Problem: 18 business executives and 7 chairmen meet at a conference . if each business executive shakes the hand of every other business executive and every chairman once , and each chairman shakes the hand of each of the business executives but not the other chairmen , how many handshakes would take place ?
Output: 279