Mr. Hyers is buying cupcakes for all of the 10th grade students at Carson High School. The prices for cupcakes are shown in the chart. Cupcakes are sold by the dozen and Mr. Hyers needs to buy 295 cupcakes. What will be the cost of the cupcakes before tax?