A square is divided into eight rectangles of equal area. One of these rectangles has a width of 8. What are the lengths of the sides of the square?