6x=10k+22=2k\cdot 5+4\cdot5+2=5\cdot(2k+4)+2 \Leftrightarrow 6x\equiv 2(mod 5)\Leftrightarrow x\equiv 2(mod 5)