Show that and , B being any set, are open.

I understand that for both problems I need to pove that are subsets of S and C for some positive number t. But, in the first one, I don't know how to get the y involve.

For the second one, I have w in D(x,a), then |w-y| = |w-x+x-y| < |w-x| + |x-y| = |w-x| + 1, but then... how do I get it < 1?