Given a = {a, B, 2}, B = {2a, b square, 2}, and satisfying a = B, find the value of a and B

Given a = {a, B, 2}, B = {2a, b square, 2}, and satisfying a = B, find the value of a and B

a=0 b=1
a=0 b=0