We know that segment PM is congruent to MQ because they have matching tick-marks. Therefore, the line that goes through the midpoint M is the segment bisector. This is line l.
Since PM and MQ are congruent, the expressions for their lengths must be equal.
We can set the two expressions equal to one another and solve for x.