For example:
$$11 \pmod {20}\\ 17 \pmod {38}$$
I had a question involving three congruences where 2 moduli were both divisible by 2, but the test is not released yet so I am writing a similar problem. I got the question wrong (I solved by finding the solution for the two relatively prime congruences and then finding the LCM but that didn't work) but since one of the congruences in the form $a \mod m$ had an $a < m/2$ I realized after the test I could solve instead with $a \mod m/2$ which coincidentally brought me to the correct answer. If it didn't work, I could add the LCM of all three moduli until I got to an answer that worked. Is there a way to solve this more reliably?
TLDR:
How do I modify Chinese remainder to solve for when two moduli share a common factor?