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

Input: Consider Input: Problem: 5 years ago , paula was 3 times as old as karl . in 6 years , paula will be twice as old as karl . what is the sum of their ages now ?

Output: 54


Input: Consider Input: Problem: the ratio between the sale price and the cost price of an article is 12 : 7 . what is the ratio between the profit and the cost price of that article ?

Output: 5 : 7


Input: Consider Input: Problem: a and b put in rs . 300 and rs . 400 respectively into a business . a reinvests into the business his share of the first year ' s profit of rs . 196 where as b does not . in what ratio should they divide the second year ' s profit ?


Output: 24 : 25