roots of two polynomials



i need to find the solutions to the product of two polynomials.

e.g. f(x) = x^4+x^3+x^2+....
g(x) = x^5+x^4+x^3+....

I want to find all solutions to f(x)g(x)=0.

how do i do this in matlab?
.