I would rather encourage you to think this through, rather than show the work and the answer.
The complexity of this problem can be reduced to 2 dimensions. Draw an isosceles triangle (representing the cone in 2d). Inscribe a rectangle (representing the cylinder). The dimensions of the triangle are given. Call the base of the rectangle x and the height y. Your goal is to get y in terms of x. Once you do that you can make an expression for the area of the rectangle with x as the only variable. Then differentiate as usual to find the max.
If you'd like to see an illustration of what I'm talking about, I'd be glad to make one.

Patrick F.
05/30/22
Annie L.
may I see an illustration?05/28/22