A soft drink can in the shape of a right circular cylinder is to have the capacity for 250mm^3. If the diameter of the can must be no less than 4cm and no greater than 8cm, find the dimensions of the can that will use the least amount of materials (include the top, bottom and side). What is the ratio of height:diameter of this can?

okay so I know the interval is where x is the diameter

Is this the right equation to use in order to minimize?

and d and h are the two variables so to eliminate one would this be correct? changing because it seems simpler to process