Answer
$x=-2$
$y=-\frac{1}{2}$
Work Step by Step
In order to solve the question, the key step here is to compare and observe the individual parts - imaginary and real parts.
bringing all the terms to one side, we have:
$2+x-5i-10yi=0$
since the total sum of the real and imaginary parts are equal to $0$, this implies that the sum of the real parts is equal to $0$ and the sum of the imaginary part is equal to $0$
Therefore,
The real part $2+x=0$, which gives $x=-2$
The imaginary part $-5-10y=0$, which gives $y=−\frac{1}{2}$