Furniture Layout Script

I’m not the most well versed in Grasshopper so apologies if this is a very simple thing to do but I was wondering if anyone knew how to generate a script that allowed me to populate a space with tables of specific sizes/shapes? They would need to have some sort of parameter that prevents them from being within a certain distance of each other and boundary edge but also fill in relatively organized.

Some more context, we’re creating an event space and need to do an analysis of various table layouts that give the us the most seating. So want to be able to test many sizes and shapes of tables without having to manually populate the space. Handling the data manually is fine, just don’t want to spend hours upon hours copying and pasting.