As there was not a set eastern limit to the Tordesillas line, both kingdoms organized meetings to resolve the issue. From 1524 to 1529 Portuguese and Spanish experts met at Badajoz-Elvas trying to find the exact location of the antimeridian of Tordesillas, which would divide the world into two equal hemispheres. Each crown appointed three astronomers and cartographers, three pilots and three mathematicians. Lopo Homem, Portuguese cartographer and cosmographer was in the board, along with cartographer Diogo Ribeiro on the Spanish delegation. The board met several times, without reaching an agreement: the knowledge at that time was insufficient for an accurate calculation of longitude, and each group gave the islands to its sovereign. The issue was settled only in 1529, after a long negotiation, with the signing of Treaty of Zaragoza, that attributed the Maluku Islands to Portugal and the Philippines to Spain.