To find this, we simply do the pythagorean theorem. A^2+B^2=C^2. We do this because when the ladder is up against the tree, it creates a right triangle. 9ft is the base and the height is 12ft. We need to find C^2 which is the hypotenuse.
12^2+9^2=C^2
144+81=C^2
225=C^2
15=C
The ladder must be 15 feet tall