A hexagonal prism has a height of 6 units and a regular hexagonal base with a side length of 4 units. What is the length of the longest segment that can fit inside this prism?

don't repost. https://web2.0calc.com/questions/geometry_23400 is where the question is