I have a system of two modular congruences:
$x \equiv k \bmod{m}$
and
$x \equiv 0 \bmod{23}$
Where $k$ and $m$ are known quantities and I want to find $x$. I'm at a loss as to whether or not there's a closed form for this, and even if I find this value of $x$, how do I know what the next workable value of $x$ is? Would it be $x$, $x + 23m$, $x + 46m$, $x + 69m$, etc? Or is it multiples of $\text{lcm}(23, m)$?