Start with (a). Given $S^n$, first think about all points not on the equator (here, if $S^n = \{(x_1,...,x_{n+1})|$ $x_1^2 + ... + x_{n+1}^2 = 1\}$, then the equator is all the points with, say, $x_{n+1} = 0$).
When we identify these particular points, every point has a unique representative in the open "northern" (i.e., x_{n+1} > 0) hemisphere. We still need to make identifications on the equatorial boundary of the closed northern hemisphere.
Thus, we can obtain \mathbb{R}P^n$ by taking just the northern hemisphere of a sphere and identitifying some more points on the equator. But the northern hemisphere is a (closed) n-ball, and the equator is the boundary of the n-ball. Finishing up the identificatin on $S^n$ is simply a matter of identifying antipodal points on the equator, but the equator is the boundary of the n-ball, so the two constructions give the same space.