show graph

H = (-14, 17)
G = (-14, 1)
A = (-8, 1)
B = (-6, 1)
C = (-6, 9)
D = (-2, 17)
E = (-12, 17)
F = (-8, 9)
P = (-12, 9)
Q = (-2, 9)
poly1, a, b, c, d, e, f, i, l = Polygon(A, B, C, Q, D, E, P, F)
g = Segment(G, H)
I = Point(g)
height = Segment(G, I)
h_1 = OrthogonalLine(I, g)
J, K = Intersect(h_1, poly1)
liquid1, a_1, b_1, j_1, k_1 = Polygon(A, B, J, K)
liquid2, j, k, m, n, p, q, r, s = Polygon(A, B, C, Q, J, K, P, F)
liquid: (liquid1 * (height ≤ 8)) + (liquid2 * (height > 8))
A1: height
B1: liquid2
M: (height, liquid)
list2: {M}
loc1 = Locus(M, I)
h = false
text1: "liquid = " + liquid + ""