Hello, elitespart!

I found that Trig made this easier . . .

A fence feet high is feet from a burning building.

Find the length of the shortest ladder that will reach from the ground

across the top of the fence to the building. Code:

* R
* |
* |
* θ |
Q * - - - - - * S
* | b |
* |a |
* θ | |
* - - - - - * - - - - - *
P U b T

The fence is feet.

It is feet from the building.

. . Note that .

The ladder is , which makes angle with the ground.

.Note that .

In right triangle

In right triangle

We have: . .[1]

Minimize , solve

. .

We have: . . .

Multiply by

. . . .

We have: .

Using Pythagorus, we have: .

Then: .

Substitute into [1]: . .

Factor: .

Therefore: .