Six regular octagons each with sides of length 2 are placed in a two-by-three array and inscribed in a square as shown. The area of the square can be written in the form $m + n\sqrt{2}$ where $m$ and $n$ are positive integers. Find $m + n$.

Source: Purple Comet Math Meet, 2008, High School Round

Happy problem solving!

Email your solution to [email protected]