Lauren went to a store to buy some clothes. The shirts were selling at a 20% discount. A pair of pants cost $5 less than 3 times the original cost of a shirt.

If she spent $36 in all, what was the original cost of a shirt?