2. (10 points) There is a square and a rectangle. The perimeter of the rectangle is 4 cm more than that of the square, and the width is 2 cm less than the side length of the square. Then the length is ( ) cm more than the side length of the square.
A. 2
B. 8
C. 12
D. 4
【Analysis】Obviously, the perimeter of the rectangle is 4 cm more than that of the square, so the sum of the length and width of the rectangle is 2 cm more than the sum of the two sides of the square. The width is 2 cm less than the side length of the square, so the length should be more than the side length of the square by: $2+2$ $=4$ cm.

【Solution】Solution: According to the analysis, the perimeter of the rectangle $=2 \times$ (length + width), the perimeter of the square $=2 \times$ (side length + side length),
$\because$ the perimeter of the rectangle is 4 cm more than that of the square,
$\therefore$ the sum of the length and width of the rectangle is 2 cm more than the sum of the two sides of the square,
the width is 2 cm less than the side length of the square, so the length should be more than the side length of the square by: $2+2=4$ cm.
Therefore, the correct choice is: D.