This follows from the fact that $\operatorname{rank}(X) = \operatorname{rank}(X^T)$ for all matrices $X$. Hence
$$
\operatorname{rank}(AP) = \operatorname{rank}((AP)^T)=\operatorname{rank}(P^TA^T)=\operatorname{rank}(A^T)=\operatorname{rank}(A),
$$
since $P^T$ is invertible, and because of what you already know.
0
Bumbble Comm
On
We can use the result $\mathrm{rank}(AB)\leq\mathrm{min}\{\mathrm{rank}(A),\,\mathrm{rank}(B)\}$ as follows:
This follows from the fact that $\operatorname{rank}(X) = \operatorname{rank}(X^T)$ for all matrices $X$. Hence $$ \operatorname{rank}(AP) = \operatorname{rank}((AP)^T)=\operatorname{rank}(P^TA^T)=\operatorname{rank}(A^T)=\operatorname{rank}(A), $$ since $P^T$ is invertible, and because of what you already know.