A rectangular storage container with a lid is to have a volume of 8 m. The length of its base is twice the width. Material for the base costs $4 per m. Material for the sides and lid costs $8 per m. Find the dimensions of the container which will minimize cost and the minimum cost.
base width = m
base length = m
height = m