You didn't provide any information - what behaviors you are using? Is this Physics/Platform game? Are these objects Solid?
If B should not collide with anything, you can simply disable collisions for this object.
Otherwise you need to handle collisions with events - create events for different combinations:
A on collision with C -> do this
B on collision with C -> do that
etc.