Earlier last week I realized I needed to ship a large volume of things domestically. Of course, I decided that I wanted to do so as cheaply as possible.
I first looked at USPS standard post rates. I noted that if the "combined length and girth" of a box exceeds 108", then the package becomes significantly more expensive, as it uses the "oversized" price bracket, so I resolved not to exceed this size limit. The length of a box is defined as its longest dimension, and its girth is defined as the perimeter around the rectangle to which the length is orthogonal – in other words, the girth is $2w + 2h$.
However, because I have much to ship, I also would like to maximize the volume of such a box while not exceeding this limit. This turns into a maximization problem with a constraint:
Maximize $V(x) = lwh$, while satisfying $108 >= l + 2w + 2h$.
This seems pretty simple, but I'm not sure how to handle the three nominally independent variables $l$, $w$, and $h$. Because I did not want to wait or rely on my faulty math skills, I ultimately asked Wolfram|Alpha to solve this for me, yielding a box of size 36"x18"x18". This makes intuitive sense, to a degree, but I would like a hint as to how I could have proceeded to solve this on my own.