If (k ^ 2-4) XY + (K-2) x + (K + 1) y + 2k-1 = 0 is a quadratic equation with respect to X and y, then k =? HELP ME

If (k ^ 2-4) XY + (K-2) x + (K + 1) y + 2k-1 = 0 is a quadratic equation with respect to X and y, then k =? HELP ME

K ^ 2-4 = 0 and K-2 ≠ 0, K + 1 ≠ 0
k=-2