A society has more than 10 but fewer than 40 members. The members sit at tables with 3 members at one table and 4 members at each of the other tables, and sometimes they sit at tables with 3 members at one table and 5 members at each of the other tables. The members now sit at tables with 6 members at each table except one and fewer than 6 members at that one table.