Solving the equation y=mx+b