[step:Show $H_n(X, A) \cong H_n(X, U)$ using the five lemma]Since $(X, A)$ is a good pair, there exists an open neighbourhood $U$ of $A$ in $X$ such that $A$ is a deformation retract of $U$. Let $r: U \to A$ be the retraction and $H: U \times [0,1] \to U$ the deformation retract homotopy with $H(\cdot, 0) = \operatorname{id}_U$, $H(\cdot, 1) = i \circ r$, and $H(a, t) = a$ for all $a \in A$, $t \in [0,1]$, where $i: A \hookrightarrow U$ is the inclusion.
The inclusion of pairs $(X, A) \hookrightarrow (X, U)$ induces a map on long exact sequences. Consider the ladder:
\begin{align*}
\cdots \to H_n(A) \xrightarrow{i_*} H_n(X) \xrightarrow{} H_n(X, A) \xrightarrow{\partial} H_{n-1}(A) \to \cdots \\
\cdots \to H_n(U) \xrightarrow{j_*} H_n(X) \xrightarrow{} H_n(X, U) \xrightarrow{\partial} H_{n-1}(U) \to \cdots
\end{align*}
with vertical maps $i_*: H_n(A) \to H_n(U)$ induced by the inclusion $i: A \hookrightarrow U$, the identity $\operatorname{id}: H_n(X) \to H_n(X)$, and the natural map $H_n(X, A) \to H_n(X, U)$.
Since $A \hookrightarrow U$ is a homotopy equivalence (with homotopy inverse $r$), the inclusion-induced map $i_*: H_n(A) \to H_n(U)$ is an isomorphism for all $n$. The middle vertical map is the identity, hence an isomorphism. By the [Five Lemma](/theorems/1938), the map $H_n(X, A) \to H_n(X, U)$ is an isomorphism for all $n$.[/step]