In the equation mx-2 / 5 + 2 = x + 2m / 5, when what is the value of M, X is equal to - 1?

In the equation mx-2 / 5 + 2 = x + 2m / 5, when what is the value of M, X is equal to - 1?

It can be solved by substituting x = - 1 into the equation
(-m-2)/5+2=(-1+2m)/5
-m-2+10=-1+2m
-3m=-9
m=3