Optimal filling of the rectangle

I want to arrange these 2D shapes in the most optimal way in a rectangle, provided that the width of the rectangle is 267cm and its length is variable, and the 2d shapes can only change the angle up to ten degrees.
optimal fill.3dm (280.6 KB)

If i undertand correctly what youre looking for is a nesting algorithm.

There are free ones

And paid ones