The perimeter of a rectangle is 96 inches. The length of the rectangle is three times its width. Find the dimensions of the rectangle.