Given:
Two small pizzas, a liter of soda, and a salad costs $14.
One small pizza, a liter of soda, and three salads costs $15.
Three small pizzas, a liter of soda, and two salads costs $22.
To find:
The cost of each item.
Solution:
Let x be the cost of a small pizza.
y be the cost of a liter of soda
z be the cost of a salad.
According to the question, two small pizzas, a liter of soda, and a salad costs $14.
...(i)
One small pizza, a liter of soda, and three salads costs $15.
...(ii)
Three small pizzas, a liter of soda, and two salads costs $22.
...(iii)
From (i), we get
...(iv)
Putting
in (ii), we get
![-5x-2y=15-42](https://tex.z-dn.net/?f=-5x-2y%3D15-42)
...(v)
Putting
in (iii), we get
![3x+y+2(14-2x-y)=22](https://tex.z-dn.net/?f=3x%2By%2B2%2814-2x-y%29%3D22)
![3x+y+28-4x-2y=22](https://tex.z-dn.net/?f=3x%2By%2B28-4x-2y%3D22)
![-x-y=22-28](https://tex.z-dn.net/?f=-x-y%3D22-28)
![-(x+y)=-6](https://tex.z-dn.net/?f=-%28x%2By%29%3D-6)
![x+y=6](https://tex.z-dn.net/?f=x%2By%3D6)
Multiply both sides by 2.
..(vi)
Subtracting (vi) from (v), we get
![5x+2y-2x-2y=27-12](https://tex.z-dn.net/?f=5x%2B2y-2x-2y%3D27-12)
![3x=15](https://tex.z-dn.net/?f=3x%3D15)
![x=5](https://tex.z-dn.net/?f=x%3D5)
Putting x=5 in (vi), we get
![2(5)+2y=12](https://tex.z-dn.net/?f=2%285%29%2B2y%3D12)
![10+2y=12](https://tex.z-dn.net/?f=10%2B2y%3D12)
![2y=12-10](https://tex.z-dn.net/?f=2y%3D12-10)
![2y=2](https://tex.z-dn.net/?f=2y%3D2)
![y=1](https://tex.z-dn.net/?f=y%3D1)
Putting x=5 and y=1 in (iv), we get
![z=14-2(5)-(1)](https://tex.z-dn.net/?f=z%3D14-2%285%29-%281%29)
![z=14-10-1](https://tex.z-dn.net/?f=z%3D14-10-1)
![z=3](https://tex.z-dn.net/?f=z%3D3)
So,
.
Therefore, the cost of a pizza is $5, cost of a liter of soda is $1 and cost of salad is $3.