The area of a polygon is given by the formula Area = ap/2 where a is the length of the apothem and p is the perimeter. The apothem is a line from the center of the polygon perpendicular to a side.
Depending on the formula you know, you can find the length of a side in 1 of 2 ways.
The first way uses a triangle. Using the radius of the polygon you can create 8 congruent triangles. The center angle will be 360 / 8 = 45 and two side lengths of 20. You can find the length of the base using the law of cosines.