Corollary 2.24 says: If the CW complex $X$ is the union of subcomplexes $A$ and $B$, then the inclusion $(B,A \cap B) \rightarrow (X,A)$ induces isomorphisms $H_{n}(B,A \cap B) \rightarrow H_{n}(X,A)$ for all $n$.
Hatcher then gives a very brief proof that I don't comprehend:
Since the $CW$ pairs are good, Proposition 2.22 allows us to pass to the quotient spaces $B/A \cap B$ and $X/A$ which are homeomorphic, assuming we are not in the trivial case $A \cap B = \emptyset$.
Can someone please elaborate on this proof? In particular, why are those two spaces homeomorphic and how exactly do we apply proposition 2.22 here?