Dear Student,
The metal crystals conducts electricity in molten state while not in solid form due to presence of impurity while an ionic salts conducts electricity in both solid and molten state, as per their physical nature,
X = ionic salt = brittle
Y = metallic salt = ductile
Regards.