Finding x-intercepts of a quadratic equation