Stewart draws a triangle, and each side is 2 1/6 inches long. Judith draws a square, and each side is 1 5/8 inches long. What figure has the greatest perimeter, the triangle or the square?