Since function f gives the vertical distance of each town from sea level, then when we have the following:
it means that at certain elevation, the two towns have the same vertical distance from sea level, that is the reason why they produce the same output.
The function f(e) is given by the following expression:
Then, since two towns have different elevations, but their inputs produce the same output on f, we have that the elevations of the towns are 25 and -25