In this sentence Yellow and black would be the compound subject. Yellow and black are both subjects and the use of the word 'and' lets you know it is a compound subject.
A. is the answer I had this question in a test before and got it correct!
B. Purpose because if you intent something, you have reasons to do it