If $L$ is a left inverse and $R$ a right inverse of $A$, then $L=L(AR)=(LA)R=R$. Hence they coincide and give a two-sided inverse. The argument also shows that a matrix possessing both kinds must have equal domain and codomain dimensions.