Answer:
h‐¹(x)= (x-1)/3
To do this switch the x and y variables in this case it would be x=3y+1 and rearrange to get the y alone
gh‐¹(7)=(x-1)/9=(7-1)/9=2/3
For this section substitutethe x in the g(x) equation with h-¹(x) and then simplify to get your final expression then substitute 7 in place of x to get your integer answer
Hope it's clear, cheers!