Perhaps not the exact words – but the gist of them.
Tordesillas (my current location) was the location of a famous treaty between Spain and Portugal (7 June 1494) designed to demarcate who got what, where – for the entire planet!: west of the Iberian peninsula was for Spain, and east for Portugal.
Simple!
Turned out Brazil was an agreed exception – but, otherwise, that was the split pursued by both nations:


For good measure, let’s look at the former British Empire:

Can you identify every red patch? (I can’t!) – good material for your next Table Quiz!
A consolidated “Colonies over the Centuries” might be instructive too?