A rectangle has a perimeter of 24 units. The length of the rectangle is 3 less than 2 times the width. What is the width of the rectangle?