a standard European pallete has a size of 120 x 80 cm (for transporting goods).
I am trying to program a solution which tells me how to put a maximum of boxes on this pallette.
Those boxes are all of the same size and can not go over the edge of the pallete.
I only managed to divide the left size after placing a box by the space needed by a box, but this will result in a wrong amount as your box is always a rectangle.
So my question is: How can I figure out a solution which lets me know how many complete rectangles I can still place on the pallete?