A 273​-ft^3 pool is to be built with a square bottom of side length x. The sides are built with tiles and the bottom with cement. The cost per unit of tiles is ​$77​/ft2 while the cost of the bottom is ​$22​/ft2. Write the total cost C as a function of x.