# If $A,B$ are two square matrices such that $AB=A$ and $BA=B$ then $A$ and $B$ are
$\begin{array}{1 1}(A)\;\text{nilpotent}&(B)\;\text{idempotent}\\(C)\;\text{periodic}&(D)\;\text{involutory}\end{array}$