notam baloanele rosii=r;galbene=g;albastre=a
r+a+g=145
|-----| albastre
|-----|-----|-----| galbene
|-----|-----|-----|-----|+ 9 rosii
Scadem cele 9 si facem segmentele egale
145-9=136
136: 8=17 albastre
17x3=51 galbene
17+51+9=77 rosii
17+51+77=145(verificare)