Packing Problem

85 Views Asked by At

Hey I'm trying to solve a problem of figuring out how many rectangles of a certain size would fit within a triangle and a trapezium, is there a formula that can be used for this?

Say I had a rectangle of size 1.6mx1m and a triangle of a length of 10m and a height of 4m, the trapezium is 8m long at the top and a height of 5m and 16m on the bottom, what would be the maximum amount of rectangles to fit in to two of the rectangles and two of the trapezium, no overhanging pieces.