How to find the gcf of a polynomial