I'm stuck on a question from my chapter review homework. It appears the textbook has used the Chain Rule, but we were never taught how to use the Chain Rule in this context, so I don't know how to apply it.

How would I work this question out?

Find the derivative.

$\displaystyle y = \frac{(x+2)(x-4)^5}{(2x^3-1)^2} $

I tried to chain the top and then the bottom separately- obviously that can't be right.