solving quadratic equation by factoring