<h2>
Answer:</h2>
The length of the shortest ladder that will reach from the ground over the fence to the wall of the building is:
16.65 ft.
<h2>
Step-by-step explanation:</h2>
Let L denote the total length of the ladder.
In right angled triangle i.e. ΔAGB we have:

( Since by using Pythagorean Theorem)
Also, triangle ΔAGB and ΔCDB are similar.
Hence, the ratio of the corresponding sides are equal.
Hence, we have:

i.e.

Hence, on putting the value of h in equation (1) we get:
![L^2=(\dfrac{8(x+4)}{x})^2+(x+4)^2\\\\i.e.\\\\L^2=\dfrac{64(x+4)^2}{x^2}+(x+4)^2\\\\i.e.\\\\L^2=(x+4)^2[\dfrac{64}{x^2}+1]----------(2)](https://tex.z-dn.net/?f=L%5E2%3D%28%5Cdfrac%7B8%28x%2B4%29%7D%7Bx%7D%29%5E2%2B%28x%2B4%29%5E2%5C%5C%5C%5Ci.e.%5C%5C%5C%5CL%5E2%3D%5Cdfrac%7B64%28x%2B4%29%5E2%7D%7Bx%5E2%7D%2B%28x%2B4%29%5E2%5C%5C%5C%5Ci.e.%5C%5C%5C%5CL%5E2%3D%28x%2B4%29%5E2%5B%5Cdfrac%7B64%7D%7Bx%5E2%7D%2B1%5D----------%282%29)
Now, we need to minimize L.
Hence, we use the method of differentiation.
We differentiate with respect to x as follows:
![2L\dfrac{dL}{dx}=2(x+4)[\dfrac{64}{x^2}+1]+(x+4)^2\times \dfrac{-128}{x^3}\\\\i.e.\\\\2L\dfrac{dL}{dx}=2(x+4)[\dfrac{64}{x^2}+1+(x+4)\times \dfrac{-64}{x^3}]\\\\\\i.e.\\\\\\2L\dfrac{dL}{dx}=2(x+4)[\dfrac{64}{x^2}+1-\dfrac{64}{x^2}-\dfrac{256}{x^3}]\\\\\\i.e.\\\\\\2L\dfrac{dL}{dx}=2(x+4)[1-\dfrac{256}{x^3}]](https://tex.z-dn.net/?f=2L%5Cdfrac%7BdL%7D%7Bdx%7D%3D2%28x%2B4%29%5B%5Cdfrac%7B64%7D%7Bx%5E2%7D%2B1%5D%2B%28x%2B4%29%5E2%5Ctimes%20%5Cdfrac%7B-128%7D%7Bx%5E3%7D%5C%5C%5C%5Ci.e.%5C%5C%5C%5C2L%5Cdfrac%7BdL%7D%7Bdx%7D%3D2%28x%2B4%29%5B%5Cdfrac%7B64%7D%7Bx%5E2%7D%2B1%2B%28x%2B4%29%5Ctimes%20%5Cdfrac%7B-64%7D%7Bx%5E3%7D%5D%5C%5C%5C%5C%5C%5Ci.e.%5C%5C%5C%5C%5C%5C2L%5Cdfrac%7BdL%7D%7Bdx%7D%3D2%28x%2B4%29%5B%5Cdfrac%7B64%7D%7Bx%5E2%7D%2B1-%5Cdfrac%7B64%7D%7Bx%5E2%7D-%5Cdfrac%7B256%7D%7Bx%5E3%7D%5D%5C%5C%5C%5C%5C%5Ci.e.%5C%5C%5C%5C%5C%5C2L%5Cdfrac%7BdL%7D%7Bdx%7D%3D2%28x%2B4%29%5B1-%5Cdfrac%7B256%7D%7Bx%5E3%7D%5D)
when the derivative is zero we have:
![2(x+4)[1-\dfrac{256}{x^3}]=0\\\\i.e.\\\\x=-4\ and\ x=\sqrt[3]{256}](https://tex.z-dn.net/?f=2%28x%2B4%29%5B1-%5Cdfrac%7B256%7D%7Bx%5E3%7D%5D%3D0%5C%5C%5C%5Ci.e.%5C%5C%5C%5Cx%3D-4%5C%20and%5C%20x%3D%5Csqrt%5B3%5D%7B256%7D)
But x can't be negative.
Hence, we have:
![x=\sqrt[3]{256}](https://tex.z-dn.net/?f=x%3D%5Csqrt%5B3%5D%7B256%7D)
Now, on putting this value of x in equation (2) and solving the equation we have:

Hence,

which on rounding to two decimal places is:
