I would like to build a 40 litre enclosure, but I do not know how to make it a cube shape, because I don't know how to work out the lengths of each side. I also need to fit in the 12" sub, and a 9cm (diametre) port which is 51cm long. My measurements have come to 34.2cm x 34.2cm x 34.2cm. Could somebody help?