Originally Posted by

**spak** Thanks for reply,

I understand that these equations are pretty simple, have many solutions and it's easy to solve them manualy.

Like in your example x=11 and y=23 works too.

But i'm trying to write a computer code to solve these equations amd manual method doesn't work here.

Some how i need to get rid of modulo operation

transform my equations from this form:

a11x1+a12x2+a13 = a14 mod 10

a21x1+a22x2+a23 = a24 mod 10

to:

a11x1+a12x2+a13 = a14 + 10*q1

a21x1+a22x2+a23 = a24 + 10*q2

For the first equation i just could choose random quotient and eliminate mod operation, but i'm not sure what to do with second.