Let the number of sides in the first polygon be 2x and the number of sides in the second polygon is x.
We know:
Angle of an n-sided regular polygon = radian
∴ Angle of the first polygon = radian
Angle of the second polygon = radian
Thus, we have:
Thus,
Number of sides in the first polygon = 2x = 8
Number of sides in the first polygon = x = 4