varianta 1
a+r=x bile
a=2*r
r=a:3....=> x=3r....=>r=14+12...=>r=26 bile....=>a=2*26...=>a=52
a-12=b+14
52-12=26+14
40=40
in cutie erau 52 de bile albe si 26 bile rosii...;dupa ce s-au pus 14 bile rosii si s-au scos 12 bile albe...=> bile albe sunt 40 si bile rosii =40...(a=r)
varianta 2
a=(14+12)*2
a=26*2
a=52..................=>52-14=40 bile albe
r=52:2
r=26...................=>26+14=40 bile rosii
a=r
40=40