Which of the following was the main reason Spain agreed so readily to sell Florida to the United States after so many years of actively colonizing it?

Spain needed the money
Spain feared a revolt in Florida
Spain was busy fighting rebels in Latin America
Spain knew it had a weaker military than the United States

Spain needed the money.