a thief tries to enter a building by placing a ladder over a 9-ft-high fence so it rests against the building,which is 2 ft back from the fence.

what is the length f the shortest ladder and the ground? (let Q be the angle between the ladder and the ground) express the length of the ladder in terms of Q,

and then find the value of Q that minimizes the length of the ladder.