Does this have a top?
I would use LaGrange with xyz=64 as our constraint
using x and y as the base and length and z as the height we have as our cost
C=20xy +10(2xz)+10(2yz) IF you don't have a top
otherwise it's C=20(2xy) +10(2xz)+10(2yz) if there is a top as well.