For a regular octagon the area is given by $8 × \text {Apothem}^2 × \tan(π/8)$ Again, $\text{Side} = 2 × \text{ Apothem } × \tan(π/8)$ So use the second one to find the value of tan(π/8) and then substitute the value in the first which will give 40k as answer.