PLEASE HELP

How did a belief in manifest destiny both lead the United States into a war with Mexico and fuel
a divisive debate over the extension of slavery?