The length of a rectangle is 1 cm less than three times the width. If the perimeter of the rectangle is 46 cm find the length and width of the rectangle