Answer :

The railroad motivation was to keep black people in their own coaches. The railroad intended to discriminate against blacks.