Having difficulty understanding how to find the maximum volume with cost constraint.

We have $$1000 to buy the materials to build a box whose base length is seven times the base width and has no top. If the material for the sides cost$$10/cm2 and the material for the bottom cost \$ 15/cm2 determine the dimensions of the box that will maximize the enclosed volume.