3(x-1)^2=5(x-1)(x+1)-2x(x+1)
3(x^2-2x+1)=5(x^2-1)-2x^2-2x
3x^2-6x+3=5x^2-2x^2-5-2x
-6x+3=-5-2x
4x=8
x=2