solving quadratic equations by extracting square roots