Input
y – y1 = m(x – x1)
Solution
y1 = y – m(x – x1)
Solution for the variable y
y = m(x – x1) + y1