A pentagon has 5 sides. A hexagon has 6 sides. If the pentagon has 5 sides that each measure 6 inches, then the perimeter would be 30 inches. If the hexagon has 6 sides that measure 5 inches each, then the perimeter is also 30. The shapes have the same perimeter.