The length of a rectangle is 2 inches less than twice the width and the perimeter is 26 inches. Find the length and width.