It is given that:
Mass of each persons = m
Mass of railroad car = M
Let the velocity of the railroad w.r.t. earth, when the man on the left jumps off be V.
By the law of conservation of momentum:
When the man on the right jumps, his velocity w.r.t. the car is u.
(V is the change in velocity of the platform when the platform itself is taken as reference, assuming the car to be at rest.)
∴ Net velocity towards left, (i.e. the velocity of the car)