Here's how I did it:
I want a rectangle that is 2x3, however a square with the same perimeter would have sides of (2+3)/2. Not very nice to work with. Let's try doubling the size of the rectangle.
Technically to compare perimeters, you should add up all the sides, but if you are only concerned with creating a shape with the same perimeter, than you only need to worry about 2 sides because the opposite two sides are the same.
If we have a rectangle that is 4 x 6, then a square with the same perimeter would have sides of (4+6)/2. That's 5
Area of Rectangle is 24
Area of square is 25
(In actual fact I made my rectangle 12 x 18 and the square 15 x 15 which was totally unnecessary and I realized that as I was typing this. In that case, I expressed the ratio as a fraction: (12)(18)/(15)(15) and reduced.