What was the chief goal of the Compromise of 1850?

A.) to improve the economy in both the North and the South
B.) to preserve the Union
C.) to resolve Texas's statehood issues
D.) to preserve the balance between agricultural and manufacturing states