I know this question has already been asked few times but I'm struggling a bit on a problem.
I have a plaintext FRIDAY and its ciphertext PQCFKU, using $M = 2$, with corresponding integers $x = fr id ay = (5, 17),(8,3),(0,24)$ and $y = pq cf ku = (15, 16),(2,5),(10,20)$.
In order to find the key $k$:
$$\pmatrix{y1 \\y2 \\} = \pmatrix{x1 \\x2 \\}k$$ $$\pmatrix{15&16 \\2&5} = \pmatrix{5&17 \\8&3 \\}k$$
Now $x$ determinant, $det(x)$ is given by:
$$det(x)=5*3-8*17 = -121$$ and, using modulo 26: $$-121\pmod{26} = 9$$ Then, $det(x^{-1})$ is given by: $$9^{-1}\pmod{26} = 3$$
Now $X^{c}$ is: $$X^{c}=\pmatrix{3&8\\-17&5}$$ And $(X^{-1})^{T}$ is: $$(X^{-1})^{T}=\pmatrix{3&-17\\-8&5}$$
So, In order to find $k$: $$k=(\pmatrix{3&-17\\-8&5}det(x^{-1}))\pmod{26}$$ Which is: $$k=(\pmatrix{3&-17\\-8&5}3)\pmod{26}$$ $$k=\pmatrix{9&-51\\-24&15}\pmod{26}$$ $$k=\pmatrix{9&1\\2&15}$$
Now comes the problems, doing the decryption using $k$ and $pq$ I can't get $fr$ back.
If I'm not wrong:
$$x1 = (15,16)\pmatrix{9&1\\2&15}=(15*9+16*1, 15*2+16*15)=(151, 270)$$
And now, to obtain the plaintext:
$$(151, 270)\pmod{26} = (21, 10) $$
and, $$(21, 10) $$ leads to $vm$ which is clearly not $fr$
Is my reasoning wrong? Am I doing errors?
I've been scratching my head for a while but I was unable to find valid solution. Thanks in advance.