Answer:
The functions given in the question are

Step 1:
To figure out (fog)(x), we will substitute the value of x=x²-7x+6 in f(x)

Hence,
The function for (fog)(x) will be

Step 2:
To figure out (gof)(x), we will substitute the value of x=7x-7in g(x)

Hence,
The value for (gof)(x) will be
