To chech if 2 functions are inverses of each other we must invert the variables like this
[tex]\frac{x}{2}=y\rightarrow\frac{y}{2}=x[/tex]after inverting the variables we clear the new function for y and that will be the inverse
[tex]\begin{gathered} \frac{y}{2}=x \\ y=2x \end{gathered}[/tex]after this we can conclude that
[tex]\begin{gathered} f(x)=\frac{x}{2} \\ f^{-1}(x)=2x \end{gathered}[/tex]After this we can say that in function A this is been fulfilled
[tex]\begin{gathered} y=7x-2\rightarrow x=7y-2 \\ \text{clear for y} \\ x+2=7y \\ y=\frac{x+2}{7} \end{gathered}[/tex]