I answered the same type of question back in 2009
http://www.jiskha.com/display.cgi?id=1245646756
Just change the numbers.
A fence 8 feet tall runs parallel to a tall building at a distance of 6 feet from the building.
What is the length of the shortest ladder that will reach from the ground over the fence to the wall of the building?
1 answer