Answer :
When you get to the point where the width is larger than the length, you can stop because you have exhausted all the possibilities. The greatest area will be the rectangle that is closer in to a square than any of the others.