Finding Equation of a straight line