Building the transcontinental railroads indeed required workers to overcome various challenges. Among the options you provided, the most relevant to the actual construction of the railroads is:
B) Overcome dangerous obstacles
This refers to the numerous physical challenges faced in constructing the railroads, including difficult terrain, harsh weather conditions, and potential conflicts with Indigenous populations. Options A and C are not directly related to the actual work of building the railroads.