It sounds like
are supposed to be real numbers. If so, then we can do the following.

Multiply the second term's numerator and denominator by the conjugate of the denominator:



Since the left hand side is equal to 1, this means it has no imaginary part, so that
. Then the real parts of both sides of the equation give us
