An octagon is inscribed in a square so that the vertices of the octagon trisect the sides of the square. The perimeter of the square is 108 centimeters What is the perimeter of the octagon?

The perimeter of the octagon is 56.