We know that segment JM is congruent to MK because they have matching tick-marks. This means that M is the midpoint of JK. Therefore, M is the segment bisector.
Since JM and MK are congruent, the expressions for their lengths must be equal.
We can set the two expressions equal to one another and solve for x.