We will have the following:
[tex]\begin{gathered} p=2(l+w) \\ \\ and \\ \\ l=w+3 \\ w=w \end{gathered}[/tex]So:
[tex]\begin{gathered} p=2(l+w)\Rightarrow p=2(w+3+w) \\ \\ \Rightarrow p=2(2w+3)\Rightarrow p=4w+6 \end{gathered}[/tex]Then we will have that:
[tex]\begin{gathered} 62=4w+6\Rightarrow4w=56 \\ \\ \Rightarrow w=14 \end{gathered}[/tex]So, the width is 14 inches and the length will then be 17 inches.