The bottom area is 8/2=4 square meters.
So the other side of the bottom surface is 4/x.
Side area = x * 2 * 2+4 * 2 * 2/x = 4x+16/x.
Total cost y = (4x+16/x) * 80+4 *120 = 320x+1280/x+480.