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 =
Given the perimeter = 157
So,
Solve the equation to find the value of x
So, the value of x = 9