Let
x ----> the length side of the base
h ---> is the height of the box
so
The volume of the box is given by the formula

The surface area of the open box is given by the formula

substitute the value of h in the above expression

Find out the first derivative

Equate to zero the first derivative, to calculate the critical point

Find out the second derivative

Evaluate the second derivative for x=20
The value of the second derivative for x=20 is positive
that means
The concavity is up--------> x=20 is a minimum
Find out the value of h for x=20 cm

Find out the surface area for x=20 cm and h=10 cm

Find out the cost
Remember that
The cost of the materials used is $1 per cm^2
so
total cost=1,200(1)=$1,200
therefore
The answer is
the smallest possible cost of the box is $1,200