6. (7 points) Several sages lined up in a column. All of them wore either black or white caps. It turned out that among any 10 consecutive sages, there were an equal number of sages with white and black caps, while among any 12 consecutive sages - not an equal number. What is the maximum number of sages that could be

Answer: 15 sages.