Doug C. answered 12/07/23
Math Tutor with Reputation to make difficult concepts understandable
Let S = #of scarves sold
Let H = number of hats sold.
We have two variables so we need two equations>
I. S + H = 8 (total number of items sold is 8)
Now let's consider money.
II. 15S + 25H = 180 ( Each scarf brings in $15, each hat brings in $25, and the total is $180).
To solve this system of two equations and two unknowns, one method is the substitution method (which is probably the way to go when it is easy to solve one of the equations for one of the variablss). Let's solve the first equation for S in terms of H.
S + H = 8
S = 8 - H.
Substitute the 8 - H for S in the 2nd equation.
15S + 25H = 180
15(8 - H) + 25H = 180
Solve that equation for H and you will have the number of hats sold. Hopefully an integer results, since you are not likely selling a fraction of a hat.
120 - 15H + 25H = 180
120 + 10H = 180
10H = 60
H = 6
Now solve for S;
S = 8 - H
S = 8 - 6 = 2
Check.
2 scarves @ $15 = $30
6 hats @ $25 = $150
And $150 + $30 = $180