Answer:
![x = 4, y = 4](https://img.qammunity.org/2021/formulas/mathematics/middle-school/7u9ihg4dvraz527q6wuy963lcsr6sztgca.png)
Explanation:
![x+y=8](https://img.qammunity.org/2021/formulas/mathematics/middle-school/n4kwyu0hwttk6ae79vvj3wxlq3rwxlfby6.png)
The total number of caps or shirts needed will be equal to the total amount of people in the system.
![6x+3y=36](https://img.qammunity.org/2021/formulas/mathematics/middle-school/ppla81m5vu76w02e1g2vc8kzbc1dty49u9.png)
We can multiply the amount of caps and shirts by their price to get the total price needed.
![y=8-x\\6x+3(8-x)=36\\6x+24-3x=36\\3x=12\\x=4](https://img.qammunity.org/2021/formulas/mathematics/middle-school/boqaq2pun36c0eui9n04gae2yz4ogvi2oa.png)
We can substitute one equation into another to solve for x.
Now we put our x value back into the other equation to get y
![4+y=8\\y=4](https://img.qammunity.org/2021/formulas/mathematics/middle-school/4dbuv7dp1omgnal7cu1g67tbpmxkugvt9f.png)
Now we substitute both of our values into our second equation to verify that they are correct
![6(4)+3(4)=36](https://img.qammunity.org/2021/formulas/mathematics/middle-school/ca8vl4znjturb8oi4kf4i73wmq3jkkt11b.png)
So correct!