At a music festival, souvenir hats, t-shirts, and sweatshirts are sold. The cost of three hats, two t-shirts, and one sweatshirt is $140. Two hats, two t-shirts, and two sweatshirts cost $170. And the cost of one hat, three t-shirts, and two sweatshirts is $180. Find the prices of each individual item.