Solving Problems Involving Factors of Polynomials