Solve the system:
$x^2+x+1\equiv 0\pmod {7}$
$2x-4\equiv 0\pmod {6}$
Completing the square for first equation gives:
$$(2x+1)^2\equiv 4\pmod {7}$$ $$y^2\equiv 4\pmod{7}\Rightarrow y_1=2,y_2=5$$ $$2x+1\equiv 2\pmod{7}\Rightarrow (2,7)=1|7\Rightarrow x=4$$ $$2x+1\equiv 5\pmod{7}\Rightarrow (2,7)=1|4\Rightarrow x=2$$
Second equation:
$$2x-4\equiv 0\pmod{6}\Rightarrow (2,6)=2|4\Rightarrow x=2,x=1$$
One particular solution of the system is $x=2$.
How to find general solution?