Straight Line through A and B

You can move the points A and B. Watch how the graph changes. Try to find an equation for the straight line by calculating the gradient m and the y-intercept c.
You can check your answer by making y the subject of the given equation.