The teacher will be very surprised to see your correct solution 😉
-3 + 2*x + cos(x) = 0
2*x + cos(x) - 3 = 0