Hello!
The figure pictured contains two congruent triangles (ASA), so we can assume that:
JK ≅ JM
Therefore:
2x - 4 = 4x - 16
Subtract 2x from both sides:
2x - 2x - 4 = 4x - 2x - 16
-4 = 2x - 16
Add 16 to both sides:
-4 + 16 = 2x - 16 + 16
12 = 2x
Divide both sides by 2:
12/2 = 2x/2
x = 6.