The length of a rectangle is 5 centimeters less than 3 times its width. The perimeter of the rectangle is 6 times the rectangle's width. What is the width of the rectangle in centimeters?