write an expression for the perimeter of this pentagon. if the perimeter is 157 united find x

The perimeter of the pentagon = the sum of the lengths of the sides
There are two sides of the length (4x-1) and three sides of the length (3x+2)
so,
The perimeter =
[tex]2\cdot(4x-1)+3\cdot(3x+2)[/tex]Given the perimeter = 157
So,
[tex]2\cdot(4x-1)+3\cdot(3x+2)=157[/tex]Solve the equation to find the value of x
[tex]\begin{gathered} 2\cdot(4x-1)+3\cdot(3x+2)=157 \\ 8x-2+9x+6=157 \\ 17x+4=157 \\ 17x=157-4 \\ 17x=153 \\ \\ x=\frac{153}{17}=9 \end{gathered}[/tex]So, the value of x = 9