I have found similar results here and mathematics stack exchange but they all imposed specific conditions that don't suit this problem in particular. The problem is as follows.

Let A,B be square $n\times n$ matrices such that

1) $[A,B]=0$

2) $AB\neq0$

3) $A^2=B^2=0$

4) $\mbox{Ker}(A)\cap\mbox{Ker}(B)\neq\{0\}$

Then $\mbox{Ker}(AB)=\mbox{Ker}(A) + \mbox{Ker}(B)$.

It seems to be true for all of the examples I can come up with, and one set inclusion is obvious but I don't know how to prove the non-trivial direction to obtain equality. Any advice or references to where this has been solved?

Thanks!