A rectangular storage container with an open top has a volume of 10 m3. The length of its base is twice its width. Material for the base costs $10 per square meter; material for the sides costs $6 per square meter. Express the cost of materials as a function of the width of the base.