A rectangle's length is given by the expression $3x + 4$, and its width is given by the expression $2x - 1$. If the perimeter of the rectangle is 38 units, find the value of $x$. Let's think step by step and output the final answer within \boxed{}.
user