Let $A$ and $B$ be matrices of $M\_{n}(K)$. Show that if $AB$ is invertible the matrices $A$ and $B$ are invertible.

So i know how to find the inverse of a matrice, i know how to do the product of two matrices and i know the definition of invertibility but somehow i can't find a way to prove it.

Any help to point me in the right direction would help me alot.

Thank you.