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

Apreserving the Union <-----
Bkeeping slavery out of the North
Csupporting states rights
Dending slavery in the South