
I don't have any clue . Can chinese remainder theorem can be used? I am studying number theory but I am not an expert as you can see. This question was set in the exam and I could not answer.

I don't have any clue . Can chinese remainder theorem can be used? I am studying number theory but I am not an expert as you can see. This question was set in the exam and I could not answer.
$a^{24}=(a^{12})^2\equiv 1^2\equiv 1 \bmod 13$ by Euler since $\varphi (13)=1$ as $13$ is prime.
From here you want $1\equiv 6a+2\iff 6a\equiv12\iff 66a\equiv132 \iff a\equiv 2 \bmod 13$.
Out of the primes listed only $41$ and $67$ satisfy this.