for this question you need to understand what is meant by the composite function opertaion,

in this case it means that you apply the function g to x first. You then apply f to the result of applying g to x

for part b once you have this function you just find its inverse