Jake bought 12 packs of gum on amazon. He got a discount of $5 off since he bought so many packs. His total was $31. (1) Write an equation which can be used to determine x, the price of each pack of gum. (2) Solve.