A craftsman builds a square decorative panel using identical rectangular pieces of wood, arranged in rows and columns, as shown. The ratio of the height to width for each piece is , and the frames around and between the pieces are inches wide. In inches, what is the side length of the square panel?
36
38
40
42
44