subtract 6 from both sides and factorize the left side:

Assuming x should be a real number, this can equal to zero if and only if at least one of the brackets is zero and this happens if and only if x=2 (first bracket is never zero). In complex numbers there would be also other solutions, not only x=2.