Explanation:
the sum of all exterior angles of any polygon is 360°.
therefore, the formula for calculating the size of an exterior angle of a regular polygon (all sides are equal) is: 360 / number of sides.
x = external angle
an octagon has 8 sides.
so,
x = 360/8 = 45°