A length of rope is stretched between the top edge of a building and a stake in the ground. The rope also touches a tree halfway between the stake and the building. If the building is 36 feet tall, how tall is the tree?