A rectangle 9 cm long is equal in area to a square which has a perimeter of 24 cm,find the width of the rectangle.​

I want the explanation