In 1882, government legislation restricted immigration from __________ based on race.

AMexico B. Ireland. C. India. D. China