Answer: the cost of a chicken sandwich is $3.75
the cost of a large soda is $1.5
Explanation:
Let x represent the cost of a chicken sandwich.
Let y represent the cost of a large soda.
A costumer walked into a restaurant and purchased 4 chicken sandwiches and 5 large sodas for $22.50. This means that
4x + 5y = 22.5 - - - - - - - -1
The customer behind him bought 7 chicken sandwiches and 6 large sodas for $35.25. This means that
7x + 6y = 35.25 - - - - - - - - - -2
Multiplying equation 1 by 7 and equation 2 by 4, it becomes
28x + 35y = 157.5
28x + 24y = 141
Subtracting
11y = 16.5
y = 16.5/11 = 1.5
Substituting y = 1.5 into equation 1, it becomes
4x + 5 × 1.5 = 22.5
4x + 7.5 = 22.5
4x = 22.5 - 7.5 = 15
x = 15/4 = 3.75