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