Complex sentence: Yellow and red are taken from the Spanish and Catalan flags; from 1806 to 1866, Andorra's flag had been a horizontal bicolor of yellow and red.
Split into simpler sentences: Yellow and red are taken from the Spanish and Catalan flags. From 1806 to 1866, Andorra's flag was a horizontal bicolor of yellow and red.