The teacher will be very surprised to see your correct solution 😉
x*log(x) - x*log(y) = 0
x1 = I*im(y) + re(y)
x1 = re(y) + i*im(y)
sum
I*im(y) + re(y)
=
product
i*im(y) + re(y)