...The cost of producing an ordinary cylindrical tin can is determined by the materials used for the wall and the end points. If the end pieces are twice as expensive per square cm as the wall, find the dimensions (to the nearest millimeter) to make a 1000 cm^3 can at minimal cost.
Here is my work.. but does not lead to correct answer
End pieces are 2k/cm
Wall pieces are k/cm
=2k(2pi(r^2))+k(2pi)r(h) ... forgot an r in the lateral surface area