I would like to know how to divide a number (pounds of milk) into 2 possible (truck) sizes, always using the biggest trucks possible, and minimizing any empty space.
e.g. I’ve decided that I need to order 30lbs of milk and I have trucks that carry 5lbs and 6lbs, I would need to use 5, 6lb trucks. But if I need 32lbs of milk I would use 2 6lb trucks and 4 5lb trucks (numbers shrunk for simplicity’s sake).
e.g. I’ve decided that I need to order 30lbs of milk and I have trucks that carry 5lbs and 6lbs, I would need to use 5, 6lb trucks. But if I need 32lbs of milk I would use 2 6lb trucks and 4 5lb trucks (numbers shrunk for simplicity’s sake).