I think that the 2nd of these linie equation is written incorrectly, could anyone please confirm and correct me?

For this:

I am trying to find the spots "e" and "f"

The "e" part I can rewrite the equation, but with "f" I have problems with - should it be "f-d" on the numerator instead of "d-f"?

Thanks in advance