In each subpart below you are given a metric space $(X, d)$ and a subspace $A ⊆ X$. You are also given a subset $U ⊆ A$. In each case, is $U$ an open subset of $A$ in the subspace metric on $A$? Justify your answer fully.
(a) Let $(X, d)$ be $\mathbb{R}$ with the usual metric. Let $A$ be the half-open interval $[0, 4)$. Let $U = (0, 1)$.
(b) Let $(X, d) = (\mathbb{R}^2, D)$ where $D$ is the railway metric. Let $A = \{ (x, y) ∈ \mathbb{R}^2 \text{ s.t. } y = 1 \} $. Let $U = \{(0, 1)\}$, that is $U$ consists of a single point whose $X$-coordinate is $0$ and $Y$ -coordinate is $1$.
Please help, trying to do past exam paper questions.