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

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

a=0 b=1
a=1/4 b=1/2