the number of variables depends on the number of sides of the polygon