A cupboard with two shelves with height $y$, width $x$ and depth $d$ (in cm units).
- Find for the required wood area to build the cupboard.
- Find the cupboard coordinates in the least expensive way, such that the volume size inside the cupboard is $100\,\text{cm}^3$. How much would it cost if the price of the wood is $\$100$ per $100\,\text{cm}^3$?

My approach is the following: \begin{align*} &\text{Cupboard area:} &&f(x, y, d)=3xy+2yd+xd\\ &\text{Volume: } &&xyd=100. \end{align*} Now get $d$ with respect to $x$ and $y$: $$d=\frac{100}{xy},\quad f(x,y)=3xy+\frac{200}{x}+\frac{100}{y}.$$ Compute the partial derivatives and set them to zero: $$\frac{\partial f}{\partial x}=3y-\frac{200}{x^2}=0 \Longrightarrow y=\frac{200}{3x^2},\\ \frac{\partial f}{\partial y}=3x-\dfrac{100}{y^2}=0 \Longrightarrow x=\frac{100}{3y^2},\\ x= \frac{2\sqrt[3]{450}}{3},\quad y=\sqrt[3]{\frac{50}{3}},\quad d=\frac{150\sqrt[3]{3}}{\sqrt[3]{22500}}.$$
I am not sure about the answers nor the approach, I have seen almost similar problems but still not sure.
If anyone could confirm my approach or give some hints would be greatly appreciated.
Seems good to me, except for a few minor details:
UPDATE:
Using Lagrange multipliers, let $f(x, y, d) = 3xd + 2yd + xy$, $g(x, y, d) = xyd - 100$. Then we must have $\nabla f = \lambda \nabla g$ and $g(x, y, d) = 0$. The former is $$\begin{bmatrix} 3d + y \\ 2d + x \\ 3x + 2y \end{bmatrix} = \lambda \begin{bmatrix} yd \\ xd \\ xy \\ \end{bmatrix}$$ Actually, this system of equations seems pretty hard to solve, so perhaps your method was better after all.