I have this problem from my discrete math comp sci class about inverse functions

show that for the functions f, g and h

$\displaystyle (fog^-1oh)^-1 = h^-1 o g o f^-1$

All i have so far is that

$\displaystyle h^-1 o g o f^-1 = h^-1 o g o f^-1$

because I have in my notes that $\displaystyle (gof)^-1 = f^-1 o g^-1$

If that right? And if so is there any other way I can show more work?