The area of a rectangle is given by:
[tex]\begin{gathered} A=w\cdot l \\ where \\ w=width_{}=x-1 \\ l=length \\ A=Area=x^2+3x-4 \end{gathered}[/tex]So:
[tex]\begin{gathered} l=\frac{A}{w} \\ l=\frac{x^2+3x-4}{x-1}=\frac{(x-1)(x+4)}{(x-1)}=x+4 \end{gathered}[/tex]