n=numar de lazi.
k=total kilograme de capsuni.
Daca in fiecare lada se pun cate 5 kg, raman 180 kg
5n+180=k
Daca se pun in lazi cate 6 kg ,raman 20 lazi goale si o lada cu 2 kg
6(n-20)+2=k
=> 5n+180=6(n-20)+2
=> n=298 lazi
din:
5n+180=k
=> k=5*298+180
=>k = 1670 kg de capsuni.