A square with a side of 3 cm and a rectangle with a width of 3 cm have the same area. What's the length of the rectangle?