When m is the value of M, the solutions of 3x-5y = 2m, 2x + 7Y = M-18 are opposite to each other

When m is the value of M, the solutions of 3x-5y = 2m, 2x + 7Y = M-18 are opposite to each other

3x+5x=2m
2x-7x=m-18
m=4