A box (cube) has all equal edges or sides (s), thus the volume (v) of the cube is:

So since each side or edge around is 3 in, then the length around the square bottom of the box = 4×3 = 12 in
X = -2 and -5
You can set both equal to 0 to find the answers.