We can represent the situation with the following figure
Therefore, the length of the ladder is the hypotenuse of the right triangle formed, where the legs are 12 ft and 9 ft. Using the Pythagorean theorem, we can calculate the length of the ladder as