anyway. Here's an example. For the rectangle/square problem, let \( x \) and \( y \) be the sides of the rectangle with a fixed perimeter \( P \). Of course, \( P=2(x+y) \). AM-GM states that \( \frac{x+y}{2} \ge \sqrt{xy} \), or \( \frac{P}{4} \ge \sqrt{xy} \). Since both sides are positive, we can square both sides: \( xy \le \frac{P^2}{16} \). \( xy \) is maximized when \( xy = \frac{P^2}{16} \), and AM-GM states that this equality is only true when \( x = y \). Therefore, the maximum area of a rectangle with a fixed perimeter occurs when the rectangle is a square.