Let $A, B\in M_n(\mathbb{C} ) $ such that $B^2=B$. Prove that $\operatorname{rank} (AB-BA) \le \operatorname{rank} (AB+BA) $.
The problem above is the one that appeared in the SEEMOUS 2019, which is a contest for university students. In a contest for 11th graders in my country (here we study both linear algebra and real analysis in the 11th and the 12th grade), the same problem appeared, only that $A, B\in M_n(\mathbb{R})$. Now, I have seen solutions to the SEEMOUS problem which use pretty advanced techniques, which are not taught in high school here, but I want to find one that is appropriate for my level. I suppose there should be one since it appeared in that contest for 11th graders, yet I can't find one and there is also no official solution.
To sum up, I am looking for a solution to this which may only use basic rank inequalities, linear independence, diagonalization, block matrices and other things like these.
EDIT: From $B^2=B$ I deduced that $B$ is diagonalizable and its eigenvalues are $0$ or $1$ (I doubt that eigenvalues help here).
If $B$ is invertible we have that $B=I_n$ and the conclusion follows.
In the other case, I think that we may use that $B$ is diagonalizable, but I don't know if this helps me express $AB$ and $BA$ somehow.