H(1,10) Z(10,1) B(-3,-9)
1st Calculate the distance H(horse) H to B(barn)
2nd Calculate the distance Z(horse) H to B(barn)
3rd Compare
1st distance H(horse) H to B(barn)
HB = √[(x₂-x₂)²+(y₂-y₁)₂] → √[-3-1)² + (-9-10)²]=√377 = 19.42
2nd distance ZB = √[(-3-10)²+(-9-1)²] = √269 = 16.4
HB in meter =19.42 x 100 = 1,942 m
ZB in meter = 16.4 x 100 = 1,640 m
Obviously HB > ZB and Z is closer to the Barn