The rule of the perimeter of the rectangle is
L is the length
W is the width
Since the width of the rectangle is 5 inches
Since the perimeter of the rectangle is 34 inches, then
W = 5
P = 34
Substitute them in the rule above
Divide both sides by 2
Subtract 5 from each side
The length of the rectangle is 12 inches