In a certain park, a flagpole casts a shadow that is 30 feet long at the same time a nearby tree, which is 15 feet tall, casts a shadow that is 10 feet long. If the flagpole and the tree are casting shadows at the same time, how tall is the flagpole? Let's think step by step and output the final answer within \boxed{}.
user