Fie x numărul de pere din primul coș și y numărul de pere din al doilea coș.
y + 5 = 3(x - 5) + 2
y + 5 = 3x - 15 + 2
y + 5 = 3x - 13
y = 3x - 18
Înlocuim acum y în prima ecuație:
x + (3x - 18) = 58
4x - 18 = 58
4x = 76
x = 19
y = 3(19) - 18
y = 57 - 18
y = 39
În primul coș sunt 19 de pere, iar în al doilea coș sunt 39 de pere.