Since apparently you have not seen invariant measures and the Perron-Frobenius theorem, here is a more elementary approach. We note $\mathbb P_M:=\mathbb P(\:\cdot\mid X_0=M)$ (that is under $\mathbb P_M$, the chain starts at $M$).
b. Let $N_C$ be the number of visits to $C$ before returning to $A$. Then from the dynamics of the Markov chain (reading the graph),
$$\left\{\begin{aligned}\mathbb E_A[N_C]&=\frac12\Bigl(\mathbb E_B[N_C]+\mathbb E_C[N_C]\Bigr),\\[.4em]
\mathbb E_B[N_C]&=\frac12\,\mathbb E_C[N_C],\\[.4em]
\mathbb E_C[N_C]&=1+\frac14\Bigl(\mathbb E_B[N_C]+\mathbb E_D[N_C]+\mathbb E_E[N_C]\Bigr),\\[.4em]
\mathbb E_D[N_C]&=\frac12\Bigl(\mathbb E_C[N_C]+\mathbb E_E[N_C]\Bigr),\\[.4em]
\mathbb E_E[N_C]&=\frac12\Bigl(\mathbb E_C[N_C]+\mathbb E_D[N_C]\Bigr).\end{aligned}\right. $$
This solves to
$$\mathbb E_A[N_C]=2,\quad\mathbb E_B[N_C]=\frac43,\quad\mathbb E_C[N_C]=\mathbb E_D[N_C]=\mathbb E_E[N_C]=\frac83.$$
So the answer is $\mathbb E_A[N_C]=2$. (Note that this equals $\frac{\pi_C}{\pi_A}$.)
c. Similarly, let $N_D$ be the number of visits to $D$ before returning to $A$. Then (again, reading the graph),
$$\left\{\begin{aligned}\mathbb E_A[N_D]&=\frac12\Bigl(\mathbb E_B[N_D]+\mathbb E_C[N_D]\Bigr),\\[.4em]
\mathbb E_B[N_D]&=\frac12\,\mathbb E_C[N_D],\\[.4em]
\mathbb E_C[N_D]&=\frac14\Bigl(\mathbb E_B[N_D]+\mathbb E_D[N_D]+\mathbb E_E[N_D]\Bigr),\\[.4em]
\mathbb E_D[N_D]&=1+\frac12\Bigl(\mathbb E_C[N_D]+\mathbb E_E[N_D]\Bigr),\\[.4em]
\mathbb E_E[N_D]&=\frac12\Bigl(\mathbb E_C[N_D]+\mathbb E_D[N_D]\Bigr).\end{aligned}\right. $$
This solves to
$$\mathbb E_A[N_D]=1,\quad\mathbb E_B[N_D]=\frac23,\quad\mathbb E_C[N_D]=\frac43,\quad\mathbb E_D[N_D]=\frac83,\quad\mathbb E_E[N_D]=2.$$
So the answer is $\mathbb E_A[N_D]=1$. (Note that this equals $\frac{\pi_D}{\pi_A}$.)