The teacher will be very surprised to see your correct solution 😉
log(5 - x) log(-1 - x) ---------- + ----------- = 3 log(3) log(3)
x1 = -4
sum
-4
=
product
x1 = -4.0