The volume of the box, since it has a square base, is given by the formula below
Then, according to the question,
Additionally, the cost of the box depends on its total surface area; then,
Therefore, using the first equation on C,
Derivate C, and find its minimum, as shown below
The answer is 10.6inches. (Side of the square base).