Answer:
I think there must be g(x) instead of 8(x) in the question. You can look the solution but i have corrected it and then solved it.