Main street forms right triangles, so they can measure the distance from Main street to Elm street and form Main street to Grove Street and then compare the lengths. If they are at the same distance their lengths must be the same.
Use the Pythagorean theorem to find the lengths.