Answer:
1x+3y=35, 2x+y=20
x=5, y=10
Explanation:
Let x equal the number of hats and y equal number of shirts.
Solve by substitution, elimination, or graphing.
Personally, I just solved by substitution.
Solve for x (or y) in the first equation. Let's do x.
1x+3y=35 goes to 1x=35-3y or just x=35-3y.
Since we have x, plug it in the other equation. 2(35-3y)+y=20. This equals out to y=10, i assume you understand the algebra.
Plug 10 into either equation for y.
1x+3(10)=35 or x+30=35. subtract 30 on each side. X=5.