x-nr mandarinelor
x/2+1-nr m pt bunici
x-x/2+1 aducem la acelasi numitor=2x-x+2/2=x+2/2-restul
x+2/2 supra 2=x+2/4 +1 aducem la acelasi numitor=x+2+4/4=x+6/4-nr m pt Maria
x+2/2 -x+6/4 aducem la acelasi numitor=2x+4-x-6/4=x-2/4-noul rest
x-2/4 supra 2=x-2/8 +1 aducem la acelasi numitor x-2+8/8=x+6/8-nr m pt frate
x/2+1 +x+6/4+ x+6/8 +1=x aducem la acelasi numitor
4x+8+2x+12+x+6+8=8x
7x+34=8x
7x-8x=-34
-x=-34
x=34