Let $f: A \to B$ and $g: B \to C$ be invertible mappings; that is, mappings such that $f^{-1}$ and $g^{-1}$ exist. Show that $(g \circ f)^{-1} = f^{-1} \circ g^{-1}$.
I tried using the facts that $f^{-1}(f(x)) = x$ and $g^{-1}(g(x)) = x$ but that didn't seem to help and got me trivial statements.