A tree casts a shadow 24 ft long. At the same​ time, the shadow cast by a vertical 4 ​-ft pole is 2 ft long. Find the height of the tree.