Whenever we need to find the distance of two point we are looking for the hypotenuse of a right triangle.
The Pythagorean Theorem states that:
[tex]a^2+b^2=c^2[/tex]
The Pythagorean Theorem applies to right triangles only. a and b are the side lengths of the legs while c is the length of the hypotenuse.
In a Cartesian plane the side lengths a and b are represented like this:
[tex](x_a-y_a)=a \\ (x_b-yb)=b[/tex]
So the Pythagorean Theorem would be:
[tex](x_a-y_a)^2+(x_b-y_b)^2=c^2[/tex]
We have [tex](x_a,y_a)[/tex] as the coordinates of her house or [tex](2,0)[/tex]
and [tex](x_b,y_b)[/tex] as the coordinates of her school or [tex](0,-2)[/tex]
We substitute the values to the Pythagorean theorem:
[tex]c^2=(2-0)^2+(0-(-2)) \\ =2^2+2^2 \\ =4+4 \\ =8[/tex]
[tex]c^2=8 \\ c=2 \sqrt{2} [/tex]
c cannot be negative since it is a side length.
Therefore the hypotenuse is [tex]2 \sqrt{2} [/tex] units