A fence 3 feet tall runs parallel to a tall building at a distance of 5 feet from the building. We want to find the the length of the shortest ladder that will reach from the ground over the fence to the wall of the building.

Here are some hints for finding a solution:
Use the angle that the ladder makes with the ground to define the position of the ladder and draw a picture of the ladder leaning against the wall of the building and just touching the top of the fence.

If the ladder makes an angle 0.5 radians with the ground, touches the top of the fence and just reaches the wall, calculate the distance along the ladder from the ground to the top of the fence.

The distance along the ladder from the top of the fence to the wall is

Using these hints write a function which gives the total length of a ladder which touches the ground at an angle , touches the top of the fence and just reaches the wall.
= .
Use this function to find the length of the shortest ladder which will clear the fence.
The length of the shortest ladder is feet.

You can earn partial credit on this problem.