Or a composite function.
It should be u = v 5- 1.
v=3x^2-2
y=u^5
Then you can get the right answer.
y'=5[(3x^2-2)^5- 1]^4 * 5(3x^2-2)^4 * 6x
= (tidy yourself up)