Background: This is from a proof that 341 is the lowest pseudoprime, meaning it passes the base test $a^n\equiv a \pmod n$ but n is not actually a real prime because $11\times 31=341$.
The author states:
(In fact, knowing this factorisation in advance, one could 'cheat' in the base 2 test to avoid large computations: since 11 and 31 are primes, Theorem 4.3 gives $2^{10} = 1 \mod (11)$ and $2^{30} = 1 \mod (31)$, which easily imply that $2^{341} - 2$ is divisible by both 11 and 31, and hence by 341.)
Was this obvious implication the chinese remainder theorem, or manually plugging one equation into the other, or is there some obvious rule that I don't know about that says $a_1\equiv b \mod n_1$ and $a_2\equiv b \mod n_2$ $\implies$ $a_1a_2\equiv b \mod n_1n_2$
Please don't try to prove the number is pseudoprime, I see an easy implication there ( any a will pass the test mod 11: $a^{10*34+1}\mod 11$, and I can simpify mod 31. I want to know if there's some trick that makes the first two congruences imply the third just but looking at them.