max cats per crate

number of crates

number of cats

extra cats:

mxc = 5 (slider from 4 to 8, step 1)
A: (1, 0)
A1 = (1, 0)
B1: (x(A1) + 1, y(A1))
A2 = (1, 1)
B_1: (x(A2) + 1, y(A2))
A3 = (4.650697766990292, -2.1415515533980596)
B_2: (x(A3) + 1, y(A3))
A4 = (4.552272727272727, -3.274665909090909)
B_3: (x(A4) + 1, y(A4))
B3 = (5.288664660194176, -3.0115064077669915)
B_4: (x(B3) + 1, y(B3))
C4 = (5, 3)
B_5: (x(C4) + 1, y(C4))
B2 = (5.829969902912622, -1.9482282524271857)
B_6: (x(B2) + 1, y(B2))
B1_1 = (3, 0)
B_7: (x(B1_1) + 1, y(B1_1))
C1 = (5, 0)
B_9: (x(C1) + 1, y(C1))
C2 = (5, 1)
B_{11}: (x(C2) + 1, y(C2))
C3 = (5, 2)
B_{13}: (x(C3) + 1, y(C3))
B4 = (6.1477272727272725, -3.315575)
B_{15}: (x(B4) + 1, y(B4))
F1 = (9.640909090909092, -1.9837568181818184)
B_{16}: (x(F1) + 1, y(F1))
F2 = (8.517163786407767, -2.1995485436893216)
B_{18}: (x(F2) + 1, y(F2))
F3 = (3.681818181818182, -2.889817424242424)
B_{20}: (x(F3) + 1, y(F3))
F4 = (9.606060606060607, -3.203453787878788)
B_{22}: (x(F4) + 1, y(F4))
D1 = (7, 0)
B_{24}: (x(D1) + 1, y(D1))
E1 = (7.804545454545455, -3.2951204545454544)
B_{25}: (x(E1) + 1, y(E1))
D2 = (7, 1)
B_{26}: (x(D2) + 1, y(D2))
E2 = (8.868181818181817, -3.0701204545454543)
B_{27}: (x(E2) + 1, y(E2))
D3 = (6.996969696969696, 1.9870765151515142)
B_{28}: (x(D3) + 1, y(D3))
E3 = (7.685873592233011, -2.06422223300971)
B_{29}: (x(E3) + 1, y(E3))
D4 = (6.618181818181818, -2.2110295454545454)
B_{30}: (x(D4) + 1, y(D4))
E4 = (7.047727272727273, -3.0701204545454543)
B_{31}: (x(E4) + 1, y(E4))
C: (x(A) + 1, y(A) + mxc)
B: (x(A) + 1, y(A))
D: (x(A), y(A) + mxc)
InputBox1 = Textfield(mxc)
n = 5 (slider from 4 to 7, step 1)
InputBox2 = Textfield(n)
list2 = Sequence(Text[1 + k, (1.3 + (2 * k), -0.7)], k, 0, n - 1)
list1 = Sequence(PolyLine[A + (j, 0), B + (j, 0), C + (j, 0), D + (j, 0), A + (j, 0)], j, 0, (2 * (n - 1)), 2)
cat: 10
InputBox3 = Textfield(cat)