Adrian paints convex polygons on the coordinate plane with watercolors. He has no time to fill their interiors, but he still wants the drawing order to show, so the shade of each point on a polygon boundary depends on how many polygons cover that point. Say Adrian draws the polygons p1,p2,…,pn in this order. He paints a segment of polygon pj with shade t if that segment, except possibly its endpoints, lies inside exactly t of the later polygons pj+1,…,pn.
Painting a segment with shade t costs t+11 units of black paint per unit of length. Compute the total amount of paint Adrian needs in order to draw all the polygons.