solve for x: logbase2(x^2-x-2)=2

raise to the power of 2:

x²-x-2 = 2^2
=>
x²-x-6 = 0
Solve for x by factoring.