Prove that every subset of a metric space $M$ can be written as the intersection of open sets.
My attempt:
If $A\subset M$ is open, $A$ can be written as $A\cap M$, which is the intersection of 2 open sets.
If $A\subset M$ is closed, it can presumably be written as the intersection of infinitely many open sets. But I'm not sure how.
And what if $A\subset M$ is neither open nor closed?