Notăm:
c-ciocolate
n-napolitane
a-acadele
----------
3c+6n+2a=40[lei]
5c+2n+4a=44[lei]
c=3a
3x3a+6n+2a=40[lei]
5-3a+2n|+4a=44[lei]
=>
{11a+6n=40[lei]
{19a+2n=44[lei]
=>
{11a+6n=40[lei]
{-57a=6n=-132[lei]
-46a/=-92:(-46)
a=2lei=> 1a
c=3xa
c=3x2
c=6[lei] => ciocolata
11a+6n=40[lie]
11x2+6n=40
6n=40-22
6n=18
n=18:|6
n=3 lei => 1n
6c+2n+10a=6x6+2x3+10x2[lei]
=36+6+20[lei]
=42+20[lei]
=62[lei]