we have a regular polygons. a regular polygons is a polygon that composed of equilateral and equiangular angles. any polygons has a different perimeter:
triangle
P=a+b+c
square
P=4s
then for the remaining you can used this formula P=ns ; where P for perimeter, N for number of sides, S for length of the side.