How to write linear equation in slope intercept format ( y = mx + b )