How to apply the quadratic formula to a quadratic with fractions