In 1986, Portugal and Spain both _____.

a.gained independence from the Moors
b.granted independence to their colonies
c.joined the European Union
d.signed a treaty dividing Latin America