A rectangle of perimeter \(24\) cm is revolved along one of its sides to sweep out a cylinder of maximum volume. Find the dimensions of the rectangle.