If x is a number such that x^2−3x+2=0 and x^2−x−2=0, what is the value of x ?
(A) -2(B) -1(C) 0(D) 1(E) 2