x=cantitate initiala
x/2+10=ziua 1
x-x/2-10=x/2-10=rest
(x/2-10)/2+20=x/4-5+20=x/4+15=ziua 2
x/2-10-x/4-15=x/4-25=rest
(x/4-25)/2+30=x/8-12,5+30=x/8+17,5=ziua 3
x/2+x/4+x/8+42,5=x
4x+2x+x+340=8x
x=340 kg cantitate initiala
ziua1
340:2+10=180 kg
rest
340-180=160 kg
ziua 2
160:2+20=80+20=100 kg
rest
160-100=60 kg
ziua 3
60:2+30=60 kg