The width of a rectangle is 1 less than one-half its length, and the perimeter is 46. Find the dimensions.

I need an equation with only one variable and I need the width and lenght of rectangle