Definition: The task is to generate the correct answer for a given math problem.
Input: Problem: two numbers are in the ratio of 1 : 2 . if 6 be added to both , their ratio changes to 3 : 5 . the greater number is
Output:
24