let us represent the question with a diagram for better understanding.
Using Pythagoras theorem
[tex]\begin{gathered} c^2=12^2+9^2 \\ c^2=144+81 \\ c=\sqrt[\square]{225} \\ c=15\text{ km} \end{gathered}[/tex]The distance between the parents and grandparent house = 15 km