Which was a goal of both the Compromise of 1820 (Missouri Compromise) and the Compromise of 1850?

A. ending slavery in the South

B. preserving the Union

C. keeping slavery out of the North

D. supporting states rights