Finding Equation of a Curve passing through 2 points