The average (mean) of 20 numbers is 30, and the average of 30 other numbers is 20. What is the average of all 50 numbers?
<|im_start|>system
You are a helpful assistant.<|im_end|>
<|im_start|>user
The average (mean) of 20 numbers is 30, and the average of 30 other numbers is 20. What is the average of all 50 numbers?
Please reason step by step, and put your final answer within \boxed{{}}.<|im_end|>
<|im_start|>assistant

user
24
The average (mean) of 20 numbers is 30, and the average of 30 other numbers is 20. What is the average of all 50 numbers?
train