Take bookings that will actually fit
It works out how long a two sits compared with an eight, how many people the kitchen can start in the same half hour, and which table wastes the fewest empty seats — then offers only the times that hold up. Two guests taking the last table at the same moment can never both get it.