You have to use both.
Let's say f (x) = g(x) * h(x), so g(x) = (1-x)^2 and h(x) = (1+x)^3.
First, apply the product rule, since you have a product of functions, i.e. f'(x) = g'(x)*h(x) + g(x)*h'(x).
Now you only need to apply the composition rule to sind g'(x) and h'(x).