Equating real and imaginary parts to solve equations | Complex Numbers