The setup of both ladders will give us two triangles as shown below:
Since both triangles have 2 equal angles in both triangles, this means that they are both similar.
Hence, we can have a ratio of their sides equal to each other as follows:

Substituting, we have

The height is 10 feet.