An open box is to be made out of a 10-inch by 18-inch piece of cardboard by cutting out squares of equal size from the four corners and bending up the sides. Find the dimensions of the resulting box that has the largest volume.

Dimensions of the bottom of the box: x
Height of the box: