Representations of polygons of finite groups