We can notice that both the perimeters of the rectangle and octagon are same that is 12 cm.
Perimeter of rectangle = 2(l + b) = 2 ( 4 + 2) cm
Perimeter of octagon will be = sum of all sides = 8a
It is equal to 1080 degrees for a regular octagon. Octagon is a closed shape with 8 sides.
Perimeter of octagon will be = 8 x 1.5 = 12 cm
Thus we can notice in this case that both the perimeters of the rectangle and octagon are same.
Learn more from here perimeter,
https://brainly.com/question/16543440
#SPJ1