Macys bought 20 dozen t-shirts, each to be sold at $23 above cost. the Macys sold x of the t-shirts at that price. Each of the remaining t-shirts were sold at $9 below cost. If the store paid $12 for each shirt, what was the total profit for the sale?