A box of volume 288m³ with a square bottom and no top is made of two different materials. The cost of the bottom is (40)/(m²) and the cost of the sides is (30)/(m²). Find the dimensions of the box.