Recall that for a pair $(X,A)$ with $A$ a subspace of $X$, we get a long exact sequence in homology $$\cdots\to H_p(A)\to H_p(X)\to H_p(X,A)\to H_{p-1}(A)\to H_{p-1}(X)\to\cdots$$ over the given coefficient ring.
Next, recall that $B^{n+1}$ is contractible for all $n$ and so $H_p(B^{n+1})=0$ for all $p\geq 1$. Also, $H_0(X)=\oplus_{i=1}^k\mathbb{A}$ for all $X$ with $k$ path components.
Also, remember that if $A_1\to A_2\stackrel{f}{\to} A_3\to A_4$ is an exact sequence of groups, then $A_1=0=A_4$ if and only if $f$ is an isomorphism.
Finally, recall that for the pair $(X,A)$, if there exists a neighbourhood $U\subset X$ of $A$ such that $A$ is a deformation retract of $U$, then $H_p(X,A)\cong \tilde{H}_p(X/A)$ where $\tilde{H}$ denotes reduced homology.