Two brothers went shopping at a back-to-school sale where all shirts were the same price, and all the shorts too. The younger brother spent $76 on 8 new shirts and 3 pairs of shorts. The older brother purchased 3 new shirts and 9 pairs of shorts and paid a total of $123. How much did each item cost?