We know that lwh = 10
Also, l = 2w
Therefore, (2w)wh = 10
2w2h = 10
w2h = 5
This is our constraint
Now we have to minimize the cost
Cost = 20l*w + 12(2)w*h + 12(2)l *h
Let's replace the ls with 2w
Cost = 20w*w + 24w*h + 24(2w) * h
Cost = 20w2 + 24wh + 48wh
Cost = 20w2 + 72wh
Now we have to minimize the cost. Solve for a variable in the constraint.
h = 5/w2
Now we plug that into the cost function
Cost = 20w2 + 72w(5/w2)
Cost = 20w2 + 144/w
Take the derivative and set it equal to 0
Cost' = 40w -144/w2 = 0
8/w2(5w3 - 18) = 0
5w3 - 18 = 0
5w3 = 18
w3 = 3.6
w = 3√3.6
Therefore, l = 23√3.6
h = 5/3√3.62
Lastly, use the formula for cost to find the cost