If a set a = {1, m, - 2} B = {- 1.2.4} and a intersects B = {2}, then the value of real number m is

If a set a = {1, m, - 2} B = {- 1.2.4} and a intersects B = {2}, then the value of real number m is

m=2