The ratio of two numbers is $3:5$. When 4 is subtracted from the lesser of the two numbers and 8 is added to the larger of the two, the new ratio is $2:7$. What is the greater of the two numbers before 8 is added to it?
<|im_start|>system
You are a helpful assistant.<|im_end|>
<|im_start|>user
The ratio of two numbers is $3:5$. When 4 is subtracted from the lesser of the two numbers and 8 is added to the larger of the two, the new ratio is $2:7$. What is the greater of the two numbers before 8 is added to it?
Please reason step by step, and put your final answer within \boxed{{}}.<|im_end|>
<|im_start|>assistant

user
20
The ratio of two numbers is $3:5$. When 4 is subtracted from the lesser of the two numbers and 8 is added to the larger of the two, the new ratio is $2:7$. What is the greater of the two numbers before 8 is added to it?
train