how to determine the solutions of quadratic equations