Given:
The objective is to find the shortest distance between house and library.
Consider the given triangle as,
Here, A represents the house, B the grocery and C the library.
Since it is a right angled triangle, the distance between the house and the library can be calculated using Pythagoras theorem.

Apply the given values in the above formula,
![\begin{gathered} AC^2=17^2+0.9^2 \\ AC^2=289+8.1 \\ AC^2=297.1 \\ AC=\sqrt[]{297.1} \\ AC=17.237\text{ miles} \end{gathered}](https://img.qammunity.org/2023/formulas/mathematics/college/y2stu2uy3y4y2s7lrxe2drb38isyby02xu.png)
If Natasha walks through Grocery store,

By comparing the two ways, ACHence, the hypotenuse distance AC, between house and library is the closest distance.