Answer:
Step-by-step explanation:
[tex]\left\{\begin{array}{ccc}y=5x+2&(1)\\3x=-y+10&(2)\end{array}\right\\\\\text{substitute (1) to (2):}\\\\3x=-(5x+2)+10\\3x=-5x-2+10\qquad\text{add 5x to both sides}\\8x=8\qquad\text{divide both sides by 8}\\x=1\\\\\text{put the value of x to (1):}\\\\y=5(1)+2\\y=5+2\\y=7[/tex]