The background is RSA encryption. Can I use some theorem to exploit this situation?
I thought about fermats theorem but I don t know how to use it here
fermats theorem (If a and p are coprime numbers such that $a^{p−1} − 1$ is divisible by p, then p need not be prime.)
Hint:
We can't apply Fermat's theorem because $143 = 11 \cdot 13$ is not prime. But we can apply it to the prime factors: $$ m^{10} \equiv 1 \bmod 11, \quad m^{12} \equiv 1 \bmod 13 $$ Thus, solve $19x \equiv 1 \bmod 10$ and $19x \equiv 1 \bmod 12$. Then $m = m^1 \equiv m^{19x} \equiv 16^x \bmod 143$.