I have a plaintext "monday" and ciphertext "IKTIWM" and $m=2$. I want to find the key of the Hill cipher.
I made a matrix $$ \begin{bmatrix} a_1 & a_2 \\ a_3 & a_4 \end{bmatrix}\begin{bmatrix} m \\ o \end{bmatrix} = \begin{bmatrix} I \\ K \end{bmatrix} \pmod{26}$$
$X=\{\{m,o\},\{n,d\}\}$, $Y=\{\{I,K\},\{T,I\} \}$, I want to find $X \times K=Y$.
I will multiply this equation with inverse($X$).
But for the modulo inverse you need $gcd$(determinant($X), 26) =1$ . Which is not happening here.