2x+3y=7, 2x+y=5

Check the final answer first, then review the worked steps.

Answer

1 food item costs 2 dollars, and 1 juice costs 1 dollar

Work

1) 2x + 3y = 7
2) 2x + y = 5
(1) - (2) => 2y = 2 => y = 1
2x + 1 = 5 => 2x = 4 => x = 2

Step-by-step solution

Subtracting the second equation from the first gives (2x + 3y) - (2x + y) = 7 - 5, which simplifies to 2y = 2, so y = 1. Substituting y = 1 into 2x + y = 5 gives 2x + 1 = 5, so 2x = 4 and x = 2.