# Your friends in class want you to make a run to the vending machine for the whole group. Everyone pi

Discussion in 'Calculator Requests' started by math_celebrity, Jun 15, 2020.

Tags:
1. ### math_celebrityAdministratorStaff Member

Your friends in class want you to make a run to the vending machine for the whole group. Everyone pitched in to make a total of \$12.50 to buy snacks. The fruit drinks are \$1.50 and the chips are \$1.00. Your friends want you to buy a total of 10 items. How many drinks and how many chips were you able to purchase?

Let c be the number of chips. Let f be the number of fruit drinks. We're given two equations:
1. c + f = 10
2. c + 1.5f = 12.50
Rearrange equation 1 by subtracting f from both sides:
1. c = 10 - f
2. c + 1.5f = 12.50
Substitute equation (1) into equation (2):
10 - f + 1.5f = 12.50

To solve for f, we type this equation into our search engine and we get:
f = 5

Now, substitute this f = 5 value back into modified equation (1) above:
c = 10 - 5
c = 5