A pizza box with a square base is to be made from a rectangular sheet of cardboard by cutting six 1-inch squares from the corners and the middle sections and folding up the sides (see the figure). If the area of the base is to be 400 in^2, what size piece of cardboard should be used?