(b)
Since $AB = B\$and$\ BA = A,\$so
$BAB = B^{2}$
$\Rightarrow (BA)B = B^{2}$
$\Rightarrow AB = B^{2}$
$\Rightarrow B = B^{2}$
Hence, $B$ is idempotent and similarly$A$.
$(A - B)^{2} = A^{2} - AB - BA + B^{2} = A - B - A + B = 0$
Therefore, $A - B$ is nilpotent