Goodreams: Your equations for x & y are correct.

I prefer x = (a - b) / (d - c) or x = (b - a) / (c - d), but youir equation is correct as it stands.