You can't show this. To show this, you to need consider the metric function of X and the metric function of Y. You can only talk about a metric function of a metric space. But, if I understand the problem correctly, Y is not a metric space by definition; it's just a subset of X. You need to show that this subset together with the metric function of X forms a metric space. And to do this, check the axioms of a metric space.