Answer:
Sandwich = 2
Cookie = 1
Explanation:
Let
- cost of sandwiches = x
- cost of cookies = y
This would mean :
3x + 2y = 8 and 7x + 2y = 16
Because we have two similar terms in the equations, (2y) we can subtract the two equations from each other cancelling out the terms resulting in us having one term that we can solve for. This is known as the elimination method
7x + 2y = 16
- 3x + 2y = 8
-----------------------
4x + 0y = 8
==> 4x = 8
==> x = 2
We can now plug in the value of x into one of the equations and solve for y
==> 7x + 2y = 16
==> 7(2) + 2y = 16
==> 14 + 2y = 16
==> 2y = 2
==> y = 1
We can conclude that the cost of a sandwich is 2 and the cost of a cookie is 1