Let (X,d) be a metric space, Given a closed subset Y of X and a point x in X. Show that d(x,Y) is continuous as a function of x. that is f(x)=d(x,Y) is continuous

Show also that a topology induced by the metric d is finer than the cofinite topology on X.

Thank you very much for any help or guidance