The correct answer is Illinois and Wisconsin.
In 1831, after the death of Peter Blow (his owner), Dred Scott was bought by a surgeon in the U.S. army, John Emerson. He moved with his new owner, from Missouri to Illinois, which was a free state, and then to Wisconsin, a territory.