A rectangular storage container without a lid is to have a volume of 10 m3. The length of its base is twice the width. Material for the base costs $5 per square meter. Material for the sides costs $3 per square meter. Let w denote the width of the base. Find a function in the variable w giving the cost C (in dollars) of constructing the box.