$X$ is path-connected and $b\in x$; show every path in $X$ is homotopic with endpoints fixed to a path passing through $b$.
This is the hint in the book: Let $\gamma$ be a path from x to y. If $\alpha$ is any path from $x$ to $b$, then the path $\alpha(\alpha^{-1}\gamma)$ passes through $b$, and it's homotopic to $\gamma$ with endpoints fixed.
I don't understand why $\alpha(\alpha^{-1}\gamma)$ is homotopic to $\gamma$ with endpoints fixed?
Let $\gamma$ be any path with endpoints $x = \gamma(0)$ and $y=\gamma(1)$. Let $\alpha$ be a path from $y$ to $b$, i.e., $\alpha(0)=y$ and $\alpha(1)=b$. Let $\bar{\alpha}$ denote the path $\alpha(1-t)$.
Now $\gamma*\alpha*\bar{\alpha}$ is a path from x to y (here $*$ denotes the usual definition of path concatenation). Since $\alpha*\bar{\alpha}$ is homotopic relative to $\{0,1\}$ to the constant path, we have that $$\gamma*\alpha*\bar{\alpha}\simeq \gamma*c_{y}\text{ rel}\{0,1\}$$
Now the constant path has the property that given any path $\gamma$, $$\gamma * c_{\gamma(1)}\simeq \gamma \text{ rel}\{0,1\} $$
Since homotopy is an equivalance relation, we have that $$\gamma*\alpha*\bar{\alpha}\simeq \gamma\text{ rel}\{0,1\}$$