Using the midpoint concept, it is found that x = 7.
----------------------
----------------------
[tex]XP = 8x - 2[/tex]
[tex]PY = 12x - 30[/tex]
Since they are equal, we use it to find x.
[tex]XP = PY[/tex]
[tex]8x - 2 = 12x - 30[/tex]
[tex]4x = 28[/tex]
[tex]x = \frac{28}{4} = 7[/tex]
The value of x is 7.
A similar problem is given at https://brainly.com/question/10956693