Hint $\rm\ mod\ (p,q)\!:\ q^{p-1}\equiv (1,0),\ \ p^{q-1}\equiv (0,1)\:$ so their sum $\rm\:x \equiv (1,1)$
So $\rm\:p,q\ |\ x\!-\!1\ \Rightarrow\ pq = lcm(p,q)\ |\ x\!-\!1\:$ (or use CCRT = constant case CRT)
Generally if $\rm\:p,q\:$ are coprime then $\rm\: e' = p^{\phi(q)}$ satisfies $\rm\: e'\equiv 0\pmod{\!p},\ e'\equiv 1\pmod{\!q}.\ $ Hence using $\rm\,e'$ and its complement $\rm\:\ e = 1-e',\ $ where $\rm\:\! \ e\: \equiv 1\pmod{\!p},\:\!\ e\:\equiv 0\pmod{\!q}\:,\:$ yields this closed-form for solutions of congruences via CRT = Chinese Remainder Theorem
$$\bbox[1px,border:1px solid #c00]{\bbox[8px,border:1px solid #c00]{\begin{eqnarray}\rm x\ \equiv\ a\!\!\pmod{\!p} \\ \rm x\ \equiv\ b\!\!\pmod{\!q}\end{eqnarray}\rm \iff \ x\ \equiv\ a\, e + b\, e'\!\!\!\pmod{\!pq}}}\qquad$$
The relationship between CRT and the orthogonal idempotents $\rm\:(1,0),\ (0,1)\:$ is clarified when onle learns the Peirce product ring decomposition $\,\Bbb Z_{pq}\cong \Bbb Z_p\times \Bbb Z_q\,$ induced by such idempotents, e.g. see this answer for how the common CRT formula follows immediately.