total probleme=40
total puncte Andrei=50
probleme corecte=5puncte=notăm cu a
probleme greșite= -20 puncte=notăm cu b
5a+ (-20b)=total puncte andrei=50
a+b=40 (probleme greșite +probleme corecte = 40)
a=40-b
5a-20b=50
5(40-b)-20b=50
200-5b-20b=50
200-50=5b+20b
150=25b
b=150/25
b=6
a=40-b=40-6
a=34
Deci
Andrei a rezolvat corect 34 de probleme și a greșit 6.