Prove that if $A$ is an $m\times n$ matrix and $B$ is an $n\times p$ matrix, then $\operatorname{rank} AB$ is less than or equal to $\operatorname{rank} B$.
The hint is: prove that if the $k$th column of $B$ is not a pivot column, then the $k$th column of $AB$ is not a pivot column of $AB$.
I don't think I am allowed to use row space, column space or the Sylvester's inequality as we haven't learned them yet in the class.
I have been stuck here for ages, so hints or solutions are very appreciated.
Thank you for your time.