try sketching the cardboard piece labeling each side. when folded, the height of the box is x, the length is now (13 - 2x), the width is now (6 - 2x) after cutting out the squares from each corner.
volume = length*width*height
V(x) = x(13 - 2x)(6 - 2x)