I was trying to wrap my brain around this but could not think of anything. I am very poor at maths but trying to learn of it.
Edit: Exact question is
If $x^2+x-6$ is a composite function $f(g(x))$; then figure out $f(x)$ and $g(x)$ ?
To me information looks incomplete to figure out such details.