The correct option is C X: HCl and Y: N2
X is a polar covalent molecule, while Y is a covalent molecule having triple bond.
HCl is a polar covalent molecule because H and Cl have electronegativity difference.
N2 has sharing of six electrons between the N atoms, so it has a triple bond. X is HCl and Y is N2.
So, the correct answer is option C.