If A and B are two matrices such that AB = A and BA = B, then B^2 is equal to (a) B (b) A (c) 1 (d) 0