The correct response is:
Segregation was legal as long as the facilities for blacks and whites were equal.
This was the key principle established by the Supreme Court in the Plessy v. Ferguson (1896) decision, which upheld the constitutionality of racial segregation under the "separate but equal" doctrine.