Quitad dos cerillas para obtener 4 cuadrados.

Solución

A = (0, 2)
B = (-6, 2)
a, poly1, b, c, d, C, D = Cerilla(A, B)
E = (-6.069183673661764, 2.02826530063971)
F = (-6.069183673661764, 8.028265300639713)
e, poly2, f, g, h, G, H = Cerilla(E, F)
I = (-6.1383673473235305, 8.10061224239706)
J = (-0.13836734732352918, 8.10061224239706)
i, poly3, j, k, l, K, L = Cerilla(I, J)
M = (-0.00632653619117296, 8.135204079227947)
N = (-0.00632653619117296, 2.135204079227943)
m, poly4, n, p, q, O, P = Cerilla(M, N)
Q = (-0.07551020985293722, 8.138367347323529)
R = (5.924489790147062, 8.138367347323529)
r, poly5, s, t, a1, S, T = Cerilla(Q, R)
U = (6.028265300639709, 8.21071428908088)
V = (6.028265300639709, 2.2107142890808804)
b1, poly6, c1, d1, e1, W, Z = Cerilla(U, V)
A1 = (6.097448974301473, 2.075510209852937)
B1 = (0.09744897430147414, 2.075510209852937)
f1, poly7, g1, h1, i1, C1, D1 = Cerilla(A1, B1)
E1 = (-0.06918367366176459, 2.072346941757351)
F1 = (-0.06918367366176459, -3.9276530582426483)
j1, poly8, k1, l1, m1, G1, H1 = Cerilla(E1, F1)
I1 = (6.235816321625002, -4.031428568735295)
J1 = (0.23581632162500288, -4.031428568735295)
n1, poly9, p1, q1, r1, K1, L1 = Cerilla(I1, J1)
M1 = (6.062857137470591, -4.103775510492648)
N1 = (6.062857137470591, 1.8962244895073526)
s1, poly10, t1, a2, b2, O1, P1 = Cerilla(M1, N1)
Q1 = (5.993673463808827, 2.103775510492647)
R1 = (11.993673463808825, 2.103775510492647)
c2, poly11, d2, e2, f2, S1, T1 = Cerilla(Q1, R1)
U1 = (6.062857137470592, -3.9654081631691174)
V1 = (12.062857137470592, -3.9654081631691174)
g2, poly12, h2, i2, j2, W1, Z1 = Cerilla(U1, V1)
A2 = (12.127906112285284, 2.0578377038688482)
B2 = (12.128877543036769, -3.795612247110292)
k2, poly13, l2, m2, n2, C2, D2 = Cerilla(A2, B2)
E2 = (6.02826530063971, 8.103775510492648)
F2 = (12.028265300639712, 8.103775510492648)
p2, poly14, q2, r2, s2, G2, H2 = Cerilla(E2, F2)
I2 = (12.059693869375005, 8.27673469464706)
J2 = (12.059693869375005, 2.2767346946470584)
t2, poly15, a3, b3, c3, K2, L2 = Cerilla(I2, J2)
M2 = (12.163469379867651, 2.1383673473235296)
N2 = (18.163469379867642, 2.1383673473235296)
d3, poly16, e3, f3, g3, O2, P2 = Cerilla(M2, N2)
Q2 = (12.059693869375003, -4.034591836830883)
R2 = (18.059693869375, -4.034591836830883)
h3, poly17, i3, j3, k3, S2, T2 = Cerilla(Q2, R2)
U2 = (18.19173468050736, -3.9999999999999987)
V2 = (18.19173468050736, 1.9999999999999996)
l3, poly18, m3, n3, p3, W2, Z2 = Cerilla(U2, V2)
o = false

Tool: Cerilla
Input: A, B
Output: c_1, poly1, d_1, e_1, f_1, G, I

a = Line(A, B)
b = OrthogonalLine(B, a)
C = Point(b)
c = Circle(B, C)
d = Line(C, a)
e = Mirror(d, a)
f = Line(A, b)
D = Intersect(f, d)
E = Intersect(e, f)
F = Intersect(e, b)
poly1, c_1, d_1, e_1, f_1 = Polygon(C, D, E, F)
G, H = Intersect(c, a)
I: (x(B), y(B))