How do I multiply out modular division(s) to simplify for x? I am trying to tackle a coding problem and I'm hopeful that I can simplify the equation in terms of $x$ ($x = ???$) from the following statement: $$b\mod{x} = x \mod{a}$$
Example: $x=6$ where $a = 6$ and $b = 36 $: $$36\mod{6} = 6 \mod{6} = 0$$
All possible values for $a$, $b$, and $x$ are integers that are $\geq 1$ and $\leq 100$. Any steps that can help would be appreciated!