Equating real and imaginary parts gives

and .

Rearranging equation 1 gives .

Substituting into equation 2 gives

or or

It should be clear that you can not let , so that means or .

Now substituting back into gives

or

or .

So the solutions are and .