The width of a rectangle is 6 inches less than the length,x of the rectangle.the rectangle perimeter is 48 inches. Write an equation that can be used to find the value of x.

2(x)+(2x-6)=48