I'm going to set the length of the ladder equal to
.
We can now say that the distance from the bottom of the ladder to the building is 16 less than
, or
.
We also know that the distancefrom the height of the top of the ladder is 2 less than x, or
. We now have 3 sides:



We know this is a right triangle (assuming that the building and the ground are at right angles) so we can use pythagorean theorem:

Let's plug in our values:

Let's now expand these using the FOIL method or the fact that


Now we can combine everything:

Now we can factor: We're looking for factors of 260 that add to -36. We get -26 and -10.

Now we know
or

We know that
because one of the sides is 16 less than
and 16 less than 26 is negative, we can't have a negative side.
We're trying to find the height, which we previously said was

The height is 24ft.