I came across this sum in an examination... 5 blocks of volume 1 cc ,1 cc ,1 cc ,1 cc , and 4 cc are placed one above another to form a structure like this
Suppose the sum of surface areas of upper face of each block is $48 cm^2 $ .
Determine the minimum possible height of the whole structure.

It is "obvious" that all the $1$ cc blocks should be the same height, though you should justify this by showing that if two differ you can reduce the height by making them the same. Let the $1$ cc blocks have height of $h$ and the $4$ cc block have height $k$. The overall height is $4h+k$. The total area is $48=\frac 4h +\frac 4k$. Solve this for one variable, plug it into the total height of $4h+k$ getting an expression in one variable, differentiate, set to zero, solve.