Suppose you are a pharmacist who manufactures pill capsules. The pill is shaped like a cylinder with two hemispheres on either end. The pill must have a volume of 1000mg. The surface area of the hemispheres cost twice as much as the surface area of the cylinder. Find the dimensions which will minimize the cost of the pill.

Cannot figure this one out any help would be greatly appreciated