Hey All,
We often teach this question in class, so I thought I'd weigh in briefly.
There are two major splits here, the first is subject-verb agreement. You can always recognize this by singular/plural split in either a verb or a noun (singular/verb split in noun can also be a pronoun issue...by the way).
Your technique when faced with something like this should always be to IMMEDIATELY go looking for the verb. In this case, the verb is "are", all the way at the bottom of sentence. This means we need a plural subject: costs. (I'm not sure why some people think cost is plural and costs is singular--with rare exceptions, "s" makes plurality).
From there, we have a split between prepositions (with, of, from). All of these forms are inherently correct, in that costs can "arise from" something, or "be associated with" something, or just be "of" (costs of doing business, for example). The key is parallelism.
When you see the parallelism trigger "and", notice that the word that comes after it is WITH. This means we need to have a "with" in the first portion of the parallelism. You wouldn't want to say "costs associated with BLAH and arising from BLAH" or "costs associated with BLAH and of BLAH". Neither of those would be parallel.
These two splits get us to the correct answer: B.
Hope that helps!