I am learning how to solve system of congruences and I am having some trouble with one exercise.
$5x=3mod7$
$2x=4mod8$
$3x=6mod9$
For
$x=2mod7$
$x=2mod8$ and $x=6mod8$
$x=2mod9$, $x=5mod9$, and $x=8mod9$
$M: M=7*8*9=504.$
Now to figure out M1, M2, and M3:
M1=72, M2=63, and M3=56
Here is were I am having some trouble.
72X1=1mod7----------->X1=4
63X2=1mod8----------->X2=7
56X3=1mod9----------->X3=5
Therefore $X0= 5(4)72+2(7)(63)+3(5)(56)$
$X0=3162$
So $X=138 mod504$
Is this correct? I feel like I am missing some steps.