The teacher will be very surprised to see your correct solution 😉
log(1/2)*x+2 = x-4
log1/2x+2 = x-4
x = -6 / ((-x - x*log(2))/x)
sum
6 ---------- 1 + log(2)
=
6 ---------- 1 + log(2)
product
6 ---------- 1 + log(2)
=
6 ---------- 1 + log(2)
6/(1 + log(2))
6
x1 = ----------
1 + log(2)
x1 = 6/(log(2) + 1)