In what circumstance is the cousin of your cousin related to you?

The cousin of your cousin is related to you if you share a common ancestor, such as if you are all descended from the same great grand father. If the cousin of your sousin is related to your cousin through a person to whom YOU are not related, then you are not related to the cousin of your cousin.