On the system of equations 2x-my = 25, x = 3Y of X, y, the solution is a positive integer

On the system of equations 2x-my = 25, x = 3Y of X, y, the solution is a positive integer

If we take x = 3Y into another formula, we get
6y-My=25
Let y = 25 / (6-m), because y is an integer, so (6-m) must be a divisor of 25
We get (6-m) = 1 or 5 or 25