In a classroom, there are several geometric shapes drawn on the board. One of the shapes is a triangle, which has two sides of equal length. This triangle is classified as isosceles. Next to it, there is a rectangle where the lengths of opposite sides are equal. Finally, there's a square, which is a special type of rectangle where all four sides are equal.
Which of the following shapes has the most sides?