Explanation:
There really is not enough information here. You have not indicated how x is related to the rectangle.Perhaps (as an alternative to the assumption I made [above]), you meant for x > 0 to be the length of one side of a square.
I have attached the answer in the picture.