4. Xiaoling has two different shapes of cardboard, one is square and the other is rectangular. The ratio of the total number of square cardboard to the total number of rectangular cardboard is $1: 2$. She uses these cardboards to make some vertical and horizontal open-top boxes (as shown in Figure 2-16), using up all the cardboards. In the boxes Xiaoling made, what is the ratio of the total number of vertical boxes to the total number of horizontal boxes?
4. $1: 2$
4. 【Solution】Let the total number of upright boxes: the total number of horizontal boxes $=X ： 1$, the number of rectangular cardboard pieces $=(4 X+$
3) $\times$ (the total number of horizontal boxes);
the number of square cardboard pieces $=(X+2) \times($ the total number of horizontal pots $)$, so $4 X+3=2 \times(X+$
2), $X=\frac{1}{2}$
Therefore, the total number of upright cardboard boxes to the total number of horizontal cardboard boxes is $1: 2$