Which of the following best describes the terms of the treaty of Guadalupe-hidalgo?

Mexico paid eight million dollars to the US and kept the rest of their land, and the US gained all of the territory north of the Rio Grande

The US gained access to the Mexican seaports and paid Mexico five million dollars, but Mexico kept its territory.

The US paid fifteen million dollars to Mexico in exchange for nearly half a million square miles of land.

Mexico paid the us two million dollars and gave up California, but it was able to keep Texas.

The US paid fifteen million dollars to Mexico in exchange for nearly half a million square miles of land.