Solve the quadratic equation by using parabola and straight line