Souvenir hats, T-shirts, and jackets are sold at a rock concert. Three hats, two T-shirts, and one jacket cost $140. Two hats, two T-shirts, and two jackets cost $170. One hat, three T-shirts, and two jackets cost $180. Find the prices of the individual items.