What is the answer of Y and X

Answer:
[tex]\large\boxed{x=10,\ y=2\to(10,\ 2)}[/tex]
Step-by-step explanation:
[tex]\left\{\begin{array}{ccc}y=-2x+22&(1)\\y=3x-28&(2)\end{array}\right\\\\\text{substitute (1) to (2):}\\\\-2x+22=3x-28\qquad\text{subtract 22 from both sides}\\-2x=3x-50\qquad\text{subtract 3x from both sides}\\-5x=-50\qquad\text{divide both sides by (-5)}\\\boxed{x=10}\\\\\text{Put the value of x to (1):}\\\\y=-2(10)+22\\y=-20+22\\\boxed{y=2}[/tex]