solve (x mod 2)=1, (x mod 7)=4