PLEASE HELP ASAP WILL MARK YOU AS BRAINLYEST!!!!

Which allowed the United States and Spain to divide the remainder of North America in 1819?
the Treaty of Ghent
the Monroe Doctrine
the Adams-Onís Treaty
the Louisiana Purchase