The first question:
Column equation: s = 0.5 * x * 2+(32/x+0.5 * 2) *1* 2 = x+64/x+2.
The second question:
X+64/x+2= 18, and the solution is x=8.
That is, the length of the printed part from top to bottom is 8 and the width is 4.
So the length of advertising paper is 8+ 1*2= 10, and the width is 4+0.5*2=5.