How do you create a composite foreign key when key being referenced is also a foreign key
You can create a composite foreign key from B to C:

alter table TableC
     add constraint FK_TableC_XY
     foreign key (x, y)
     references TableB (x, y)


That's better than two foreign keys: this will ensure that the combination of (x, y) is present, and not just the individual values.