The rule of the perimeter of the rectangle is
[tex]P=2(L+W)[/tex]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
[tex]34=2(L+5)[/tex]Divide both sides by 2
[tex]\begin{gathered} \frac{34}{2}=\frac{2(L+5)}{2} \\ 17=L+5 \end{gathered}[/tex]Subtract 5 from each side
[tex]\begin{gathered} 17-5=L+5-5 \\ 12=L \end{gathered}[/tex]The length of the rectangle is 12 inches