Answer:
Shirts are 6
Hats are 5
Explanation:
This is a system of equations. Set up the equations first.
7s + h = 47
5s + h = 35
----------------------- Subtract the equations to eliminate the h variable
2s = 12 Divide by 2 to solve
s = 6 Each hat is 6
Plug the 6 in for s in either of the original equations
7(6) + h = 47
42 + h = 47 Subtract 42 from both sides
h = 5