A contractor constructs a square window using equal-size panes of glass, arranged in rows and columns, as shown. The ratio of the height to width for each pane is , and the borders around and between the panes are inches wide. In inches, what is the side length of the square window?
36
38
39
40
42