Solution:
Public transport like trains, buses, taxis, public places like hotels, hospitals, schools and colleges, libraries, cinema halls, theatres, beaches, swimming pools, public toilets, all were separated for the whites and blacks.
This type of discrimination was called segregation.
Black people could not visit the churches, where the white people worshipped.