Answer :
Number of hats is 5 and the number of sweatshirts is 20
The total number of items bought is 25
The total amount is $172.50
Let a represent the number of sweatshirts
Number of hats is 25-a
Cost of sweatshirt= 8x
Cost of hat= 2.50×(25-x)
= 62.50-2.5x
8x + 62.50 - 2.5x-172.50
8x-2.5x+62.50-172.50
5.5x -110
5.5x= 110
x= 110/5.5
= 20
Number of hats= 25-20, = 5
Number of sweatshirts= 20
Please see the link below for more information
https://brainly.com/question/396501?referrer=searchResults