The length of a rectangle is 12 miles less than twice the width. The perimeter of the rectangle is 96 miles. Find the dimensions of the rectangle.