若方程组2X+3Y=1 (K-1)X+(K+1)Y=4的解中X和Y的取值相等,求K的值