A closed box with a square base is to have a volume of 250 cubic meters. The material for the top and bottom of the box costs $2 per square meter, and the material for the sides costs $1 per square meter. Express the construction cost of the box as a function of the length of its base.