I am studying for a test in discrete math and I created my own question but I cannot seem to solve it.
Is it possible to solve the following equation system (without brainless testing), and if so, how?
$$x \equiv 5 \pmod 3\\ x \equiv 2 \pmod 7$$
My attempt: $$x=3a + 5 $$
$$x=7b + 2$$
$$3\mid(x-5)$$ $$7\mid(x-2)$$
I cannot seem to continue beyond this point. Can I solve it with least common multiple or something?
we can write $$x=5+3k_1$$ and $$x=2+7k_2$$ where $k_1,k_2$ are integer numbers, thus you have to solve the Diophntine equation $$3=-3k_1+7k_2$$