Look at the green shaded part of the first map then explain how the u.s gained all that land from the border to the Pacific Ocean?

Look at the green shaded part of the first map then explain how the us gained all that land from the border to the Pacific Ocean class=