Does an adjective or longer modifier apply to both nouns when they are joined with 'and' [or 'or']?

Solution 1:

It could that be both are blue, or it could be that only the shirts are blue. If the context didn’t make it clear, the speaker who wanted to avoid any doubt that it was both blue shirts and blue socks that were required would have to say something like ‘Can you grab the shirts and socks? Just the blue ones. I don’t want any other colours.’