In a certain city, the population is made up of 40% adults, 30% teenagers, and the rest are children. If the city has a population of 50,000 people and there are twice as many children as teenagers, how many adults live in the city? Let's think step by step and output the final answer within \boxed{}.
user