设满足方程组{5x-y=m-2{x+3y=m+2的解也满足x+y=2m-7,求m的值