It’s said that a mathematician can’t do up zis shoelaces because there are too many different possible ways to do it. I used to have that problem so now wear shoes without laces.
I’m having much the same problem with carpentry.
My arrangement is as follows.

7 pieces of timber, 2 long and 5 short. Because the ends may have slight bevels, or there may be a bit of bowing or twist, the pieces aren’t identical.
It turns out that there are 983040 fundamentally different ways to arrange the seven pieces of timber into this shape. Each of the seven pieces can be flipped side to side or end to end, 4 rotational states, giving 4^7 = 16384 different piece rotations. On top of that there are 5! = 120 different ways to arrange the short pieces and 2 ways to arrange the long pieces. Taking out a factor of 4 for symmetry that gives 4^7 * 120 * 2 / 4 = 983040 fundamentally different ways to make the shape.
As a mathematician, I can’t try all the options to find the best arrangement (minimal gaps where pieces join, minimal overall bend and twist).
As a carpenter?
Perhaps use the longest of the short pieces at the ends with the bevels chosen to match the twists of the long members, then slot the remaining three short pieces in place?
Or longest short piece at one end and shortest short piece at the other, and arrange in order of length then rotate to minimise gaps?