[tex]\begin{gathered} \text{From the given equation, the real part of the equation is} \\ 9x=18 \\ On\text{ solving the above real part} \\ x=\frac{18}{9} \\ x=2 \end{gathered}[/tex][tex]\begin{gathered} Now,\text{ the imaginary part of the equation is} \\ -16=2y \\ \text{Solving for y in the imaginary part} \\ y=\frac{-16}{2} \\ y=-8 \end{gathered}[/tex]
Hence the value of x is 2 and the value of y is -8