The x-intercepts are (-1/2, 0) and (-1,0).
The y-intercept is (0,1).
The 7 miles and 24 miles make up two "legs" of a right triangle.
The third side (or hypotenuse) is the distance between the towns.
distance^2 = 7^2 + 24^2
distance^2 = 49 + 576
distance^2 = 625
distance = square root of 625 or 25
The given equation is,

It can be rewritten in the form of y=mx+c, where c is the y intercept.
Hence,

Put different values for x and find value of y.
When x=0, y=1.
When x=1,

The graph is,