a=pret cutie de bomboane =3b=3*2c=6c
b=pret prajitura =2c
c=pret sticla suc
d=pret cutia de inghetata=6b=6*2c=12c
6c+2c+c+12c=42
21c=42
c=42/21=2 lei sticla de suc
a=6*2=12 lei cutia de bomboane
b=2*2=4 lei prajitura
d=12*2=24 lei cutia de inghetata
2*12+15*4+10*2+5*24=24+60+20+120=224 lei