Problem: Let $X$ be a regular space. If $Y$ is a subspace that is dense and second countable (with respect to the subspace topology), then $X$ is second countable.
I have this problem and I'm having trouble figuring it out. I have a hint, it says: consider B a countable basis for Y and show that $B' = \{\text{int}(\overline{U}) \, : \, U \in B\}$ is a countable basis for X, where $\overline{U}$ stands for the closure in $X$.
Now, it's obvious that $B'$ is countable. The problem is to show that $B'$ is a basis for $X$. Let me show what I tried.
Let $p \in X$ a point and $V$ a neighborhood of $p$. We know that $Y$ is dense, so $V \cap Y$ is a nonempty open set in $Y$. Because $B$ is a basis, there is a $U_V$ such that $U_V \subseteq V\cap Y \Rightarrow U_V \subseteq V$.
I know that if I show $\overline{U_V} \subseteq V$ and $p \in \text{int}(\overline{U_V})$ then we're done: $p \in \text{int}(\overline{U_V}) \subseteq V$ and, therefore, $B'$ is a basis.
I'm having trouble to prove both things in the above paragraph. I can't see where to use regularity or the closure of $U_V$ in $X$.
Any help would be appreciated. Any solution not using the hint is welcome too. Thanks in advance.
(P.S.: Sorry for my grammar mistakes. Englsh isn't my mother's tongue.)