Let "r" be the radius of the cylinder.
Then the side length of the hexagonal prism is "r", too.
The equation to find "r" is