If $A$ is an $m\times n$ matrix and $B$ is an $n\times m$ matrix such that $AB=I$, prove that rank$(B)=m$.
I am not sure where to begin with this proof. I have that rank$(AB) = m$, but I can't find anything to help me get further. Can anyone help me out? Thanks.