Let $X$ be a topological space and $A\subseteq X$ a subset of $X$. Let $Y$ be a subspace of $X$ so that $A\subseteq Y$, and let $A_X$ and $A_Y$ be the closure of $A$ in $X$ and $Y$ respectively. I need to show that $A_Y=A_X\cap Y$.
So far (I think) I've shown that $A_X\cap Y \subseteq A_Y$. Let $x \in A_X\cap Y$, then in particular $x\in A_X$. As the closure of $A$ is the intersection of all closed sets containing $A$, $x$ must be in each of those. Let $K$ be any one of those closed sets. Then $X\setminus K$ is open, and by the definition of the subspace topology $Y\cap (X\setminus K)=Y\setminus K$ is open in the subspace topology on $Y$. Hence $K$ is closed in $Y$ as well. I think I've shown that any set which is closed in $X$ is closed in $Y$, hence if $x$ is in $A_X$, it must be in $A_Y$.
I have absolutely no idea how to show the opposite inclusion. Any help would be greatly appreciated!