The rectangle $ABCD$ with $AB>BC$ is cut into six smaller rectangles, each of which is similar to $ABCD$. The figure is drawn to scale, and each number is the area of the rectangle it labels. The areas are $32,\,16,\,8,\,4,\,2,\,2$. What is the length $AB$?