CAYLEY 2023 Problem 21

A line has equation y=m x-50 for some positive integer m. The line passes through the point (a, 0) for some positive integer a. What is the sum of all possible values of m ?