Give me the complete solving of this question:a rectangle 9cm long is equal in area to a square which has a perimeter of 24cm find the width of the rectangle