Can someone explain how to solve for x?

Answer:
x=11
Step-by-step explanation:
Notice that the first diagram is similar with the second diagram with ratio 1:2
Ex: Side length of JK is 6 and NP being 12, 6:12→1:2
You can conclude that x:22 needs to follow the ratio of 1:2
Thus, x=11