CEMC Banner

Problem of the Week
Problem A and Solution
Stacking Rectangles

Problem

Lana is arranging cardboard rectangles on a table. Lana follows a rule that says she can only put one rectangle on top of another if the bottom rectangle is wider than the top rectangle.

For example the arrangement on the left is allowed, but the arrangement on the right is not allowed.

Two arrangements, each with one rectangle on
top of another. In the arrangement on the left, the bottom rectangle is
wider than the top rectangle, and there is a checkmark. In the
arrangement on the right, the top rectangle is wider than the bottom
rectangle, and there is an X.

Suppose Lana has the following four rectangles:

Rectangle A has length 4 cm and width 4 cm.
Rectangle B has length 6 cm and width 3 cm. Rectangle C has length 8 cm
and width 7 cm. Rectangle D has length 10 cm and width 5 cm.

  1. Find one way that Lana can arrange these rectangles one on top of the other while following the rule. Note that Lana is able to rotate the rectangles. Determine the total height from the bottom of the rectangle on the bottom to the top of the rectangle on the top.

  2. How can Lana arrange the rectangles one on top of the other so that the total height is as large as possible? Justify your answer. What is this height?

Solution

  1. There are many possible answers. One way is to arrange the rectangles so they are in the order \(A\), \(B\), \(C\), \(D\), from top to bottom, as shown.

    This follows the rule because the rectangles get wider as you move from top to bottom. In this case, the total height is \(4+3+7+5=19\) cm.

  2. The maximum possible height of the stacked rectangles would be the sum of the longer sides of each of the rectangles. If we can find some arrangement where all the rectangles are rotated so that the longer sides are vertical and the shorter sides are horizontal, this would be the optimal solution.

    It turns out this is possible if we stack the rectangles in the order \(B\), \(A\), \(D\), \(C\), from top to bottom, as shown.

    As with part (a), this follows the rule because the rectangles get wider as you move from top to bottom.

    Since we found an arrangement of the rectangles where all the longer sides are vertical, this is the arrangement with the largest possible height. Its height is \(6+4+10+8=28\) cm.