For this case, the first thing we must do is define variables.
We have then:d
x: cost of each small pizza
y: cost of each liter of soda
z: cost of each salad.
We write the equation that models the problem:
![2x + y + z = 14](https://img.qammunity.org/2019/formulas/mathematics/high-school/jf94rs0ojzpqe1cjkncd9lu073q515wlw6.png)
![x + y + 3z = 15](https://img.qammunity.org/2019/formulas/mathematics/high-school/o4ci6f5d0440cgzo031w8k2r2uwamnm6ik.png)
![3x + y + 2z = 22](https://img.qammunity.org/2019/formulas/mathematics/high-school/vb367nnp69jz0i3krhj7gy7i69iz4meei7.png)
From equation 3 we clear y:
![y = 22 - 3x -2z](https://img.qammunity.org/2019/formulas/mathematics/high-school/qmo2w2zf6hcaixj8xxrnzjuz1uc8masc6c.png)
Substituting in equation 2 we have:
![x + (22 - 3x -2z) + 3z = 15](https://img.qammunity.org/2019/formulas/mathematics/high-school/tt52z28jvrv4y8ufhtcu5h0k751xqanez7.png)
Rewriting:
![-2x + z = -7](https://img.qammunity.org/2019/formulas/mathematics/high-school/izg4lv043vyt1rci8m1bbq231strwjphbi.png)
From here, we clear the value of z:
![z = -7 + 2x](https://img.qammunity.org/2019/formulas/mathematics/high-school/obyajzjy1pjtarohjw2y40mbzty6syvrxa.png)
Then, we substitute the value of z and y in equation 1:
![2x + (22 - 3x -2 (-7 + 2x)) + (-7 + 2x) = 14](https://img.qammunity.org/2019/formulas/mathematics/high-school/ushpcz2st1gluhod428hgslq490xl5bamh.png)
From here, we clear x:
![2x + (22 - 3x + 14 - 4x) + (-7 + 2x) = 14](https://img.qammunity.org/2019/formulas/mathematics/high-school/k15gd8mf64wzao2xzymdi3zg9rzi2dfn15.png)
![2x + (36 - 7x) + (-7 + 2x) = 14](https://img.qammunity.org/2019/formulas/mathematics/high-school/2ruf1tyb7u0i6qpgx81nm57qm66cbnnvx6.png)
![-3x + 29 = 14](https://img.qammunity.org/2019/formulas/mathematics/high-school/p6djkez7fbnmban9ujb7n96nou333i5tpc.png)
![-3x = 14-29](https://img.qammunity.org/2019/formulas/mathematics/high-school/gmzgtmjch1j9oc85p9fma3o7dklvjt10bp.png)
![-3x = -15](https://img.qammunity.org/2019/formulas/mathematics/high-school/bk65akjcqmi9q1rgkavs3hqy6aq38da4yx.png)
![x = 5](https://img.qammunity.org/2019/formulas/mathematics/middle-school/a5vxn27ugorefl300gg1o2z32zkphfly54.png)
Then, the value of z is:
![z = -7 + 2x](https://img.qammunity.org/2019/formulas/mathematics/high-school/obyajzjy1pjtarohjw2y40mbzty6syvrxa.png)
![z = -7 + 2 (5)](https://img.qammunity.org/2019/formulas/mathematics/high-school/hepgasnlj024guc2cxrvlfdxyo62sty15i.png)
![z = -7 + 10](https://img.qammunity.org/2019/formulas/mathematics/high-school/s6nbf7jel3etvtb1l4i5k8y3j39uavi8dm.png)
![z = 3](https://img.qammunity.org/2019/formulas/mathematics/high-school/ute5ygkh11so78zqf8l7yu1ayynxeu2bvc.png)
Finally, the value of y is:
![y = 22 - 3x -2z](https://img.qammunity.org/2019/formulas/mathematics/high-school/qmo2w2zf6hcaixj8xxrnzjuz1uc8masc6c.png)
![y = 22 - 3 (5) -2 (3)](https://img.qammunity.org/2019/formulas/mathematics/high-school/8bplblm0ct2hrl1voss9jlzw64liyelpx7.png)
![y = 22 - 15 - 6](https://img.qammunity.org/2019/formulas/mathematics/high-school/ybsooq1y81w7fl36thsqlrp38fslmys4rh.png)
![y = 1](https://img.qammunity.org/2019/formulas/mathematics/high-school/idkpdr1pfnszvbhz15ju0rccz50b3o2n21.png)
Answer:
$ 5: cost of each small pizza
1 $: cost of each liter of soda
3 $: cost of each salad.