a. The moduli are coprime, so you can apply the Chinese remainder theorem directly. Let
![x=4\cdot5+3\cdot5+3\cdot4](https://img.qammunity.org/2020/formulas/mathematics/college/4lp5qp9qr1im0qv82r4d9t8j57skc474ad.png)
- Taken mod 3, the last two terms vanish, and
so we need to multiply by the inverse of 2 modulo 3 to end up with a remainder of 1. Since
, we multiply the first term by 2.
![x=4\cdot5\cdot2+3\cdot5+3\cdot4](https://img.qammunity.org/2020/formulas/mathematics/college/sen13jkqrd7mmf8z0iyglev8txmxc1o4b1.png)
- Taken mod 4, the first and last terms vanish, and
. Multiply by the inverse of 3 modulo 4 (which is 3 because
), then by 2 to ensure the proper remainder is left.
![x=4\cdot5\cdot2+3\cdot5\cdot3\cdot2+3\cdot4](https://img.qammunity.org/2020/formulas/mathematics/college/lnqxf1rj9vsciwtiher4f8prelpg3kdea6.png)
- Taken mod 5, the first two terms vanish, and
. Multiply by the inverse of 2 modulo 5 (3, since
) and again by 3.
![x=4\cdot5\cdot2+3\cdot5\cdot3\cdot2+3\cdot4\cdot3\cdot3](https://img.qammunity.org/2020/formulas/mathematics/college/xn59dihm3kdhzcog03e35095837whghggf.png)
![\implies x=238](https://img.qammunity.org/2020/formulas/mathematics/college/ip8knv9uzjf6bepg9iwwrox94ykvhn0bxo.png)
By the CRT, we have
![x\equiv238\pmod{3\cdot4\cdot5}\implies x\equiv-2\pmod{60}\implies\boxed{x\equiv58\pmod{60}}](https://img.qammunity.org/2020/formulas/mathematics/college/j8r9e4vvi4aeyyew22wrj6mu2h96j7y29r.png)
i.e. any number
(where
is an integer) satisifes the system.
b. The moduli are not coprime, so we need to check for possible contradictions. If
and
, then we need to have
. This basically amounts to checking that if
, then we should also have
.
![x\equiv4\pmod{10}\implies\begin{cases}x\equiv4\equiv0\pmod2\\x\equiv4\pmod5\end{cases}](https://img.qammunity.org/2020/formulas/mathematics/college/7wur40k94y0qlrc1w47979leqebj436xwv.png)
![x\equiv8\pmod{12}\implies\begin{cases}x\equiv0\pmod2\\x\equiv2\pmod3\end{cases}](https://img.qammunity.org/2020/formulas/mathematics/college/q33lwxyzz7lssd572n7re5c3e9k01iuefm.png)
![x\equiv6\pmod{18}\implies\begin{cases}x\equiv0\pmod2\\x\equiv0\pmod3\end{cases}](https://img.qammunity.org/2020/formulas/mathematics/college/dpmyf2gk9drf2i6ml4tm8gvtzx3ws54y2k.png)
The last congruence conflicts with the previous one modulo 3, so there is no solution to this system.