From each corner of a square tin 12 inches on a side, small squares of side x (in inches) are removed and edges are turned up to form an open box. Express the volume of the box (in cubic inches) as a function of x.