x=traseu
x/2+4=ziua 1
x-(x/2+4)=x/2-4 =rest
(x/2-4)/2+4=x/4-2+4=x/4+2=ziua2
x/2-4-x/4-2=x/4-6=rest
(x/4-6)/2+4=x/8-3+4=x/8+1=ziua 3
x/2+4+x/4+2+x/8+1+4=x
x/2+x/4+x/8+11=x
4x+2x+x+88=8x
x=88 km
verificare
88:2+4=44+4=48 km ziua 1
88-48=40
40:2+4=24 km ziua 2
40-24=16
16:2+4=12 km ziua 3
16-12=4 km ziua 4