answer:What the…? Calculate the total volume of the biggest boxes, and calculate the volume that the smaller boxes contain, then find the optimum positions for each box to be in to pack them as effeciently as possible? and, it’s L x W x H Or get some tetris whiz and just throw the boxes at him, it would be way easier.