Let us sketch out the part of the image needed,
To solve for the shortest distance from A to B, we will apply the Pythagoras theorem which states,

Given data

Solving for a,

Substituting the values of b=8m and c=6m

Take the square root of both sides
![\begin{gathered} \sqrt[]{a^2}=\sqrt[]{100m^2} \\ a=10m \end{gathered}](https://img.qammunity.org/2023/formulas/mathematics/college/16iina5w0zpcrieteyi0k2im0impmfchk6.png)
Hence, the shortest distance from A to B is 10m.
The correct option is D.