At the start of the millennium, State A was the third most populous state in the country, followed by State B. Since that time, State B has experienced faster growth. The population y (in millions) of the given state in year x is approximated by the following equations, where x0 corresponds to the year 2000. In what year did State B overtake State A in population? To the nearest million, what was the population of these states at that time?
(if you could show your work, that would be greatly appreciated)