A tree is 18 feet tall and casts a shadow 12 feet long. A building nearby casts a shadow that measures 22 feet long. How tall is the building?