A can in the shape of a right circular cylinder is required to have a volume of 500 cubic centimeters. The top and bottom are made of material that costs 6 cents per square centimeter, while the sides are made of material that costs 4 cents per square centimeter.

Express the total cost C of the material as a function of the radius r of the cylinder.