what is the relation between the degrees of p(x) and g(x)?