Two flagpoles stand side by side. The first flagpole is 50 feet tall. The second flagpole is as tall as the first flagpole's shadow is long. The second flagpole's shadow is 18 feet long. How many feet tall is the second flagpole?