a+b+c=1997
b:a=3 rezulta ca b=3a
c:b=2 rest 117 rezulta ca c=2b+117=2x3a+117=6a+117
a+3a+6a+117=1997
10a+117=1997
10a=1997-117
10a=1880
a=1880:10
a=188
b=3a
b=3x188
b=564
c=6a+117
c=6x188+117=1127+117
c=1245
proba
188+564+1245=1997
b:a=564:188=3
c+b=1245:564=2 rest 117