Boolean rings are commutative

Suppose R is a ring such that r2=r for every element rR.
(a) Prove r=r for every element rR.
(b) Show R must be commutative. Hint: Consider (a+b)2.