I'm trying to make a code for optimal seating arrangement to find the maximum number of people that can be seated given length and with or room, tables, and the space between each table.

How can...