Draw a diagram of the problem. Draw a rectangle with sides and . The perimeter will always be . The area is . Can you see what you need to do now?

That's the best approach to solving optimization problems. Draw a diagram.

If you are still lost on how to solve it, I'll help you. But see if you can proceed from here.