2. Find the length of the side of a square whose area is numerically equal to its perimeter.
2. Let the side length of the square be $a$, then the area $S=a \cdot a$, and the perimeter $P=4 a$. According to the condition $a \cdot a=4 a$, from which $a=4$.