A shoe store orders shoes from the manufacturer and sells them at a mall. Storing shoes at the store costs $6 per shoe pair for a year. When reordering shoes from the manufacturer, there is a fixed cost of $27 per order as well as $9 per shoe pair. The retail store sells 4750 shoe pairs each year.

Find a function that models the total inventory costs as a function of x\displaystyle {x} the number of shoe pairs in each order from the manufacturer.