Quote
IN the puzzle about the two sons, the mother told the sons to "Switch horses".


That's the anwser! Look at the wording carefully:

Quote
whichever horse crosses the finish line last, its owner will become the next in line to the throne.