A regular octagon means that each of the 8 sides are equal. So, each side is 20 inches. To find the total amount of wire, you just find the perimeter:
8 * 20 = 160 inches of wire
It is important to note that since this is a regular shape, all sides are equal, which means that the perimeter is proportional to the side lengths.