A store has x number of shirts. Each shirt was sold for $16, but the last dozen was sold on sale for $14 each. When all shirts were sold, the store gained $616. Find the number of shirts sold at the regular price.