\[\textbf{а)}\ L = \frac{1}{2}C_{b} + \frac{1}{2}C_{b} + a + a =\]
\[= C_{b} + 2a = \pi b + 2a.\]
\[Ответ:\ \ \pi b + 2a.\]
\[\textbf{б)}\ L =\]
\[= \frac{1}{2}C_{a} + \frac{1}{2}C_{a} + \frac{1}{2}C_{a} + \frac{1}{2}C_{\frac{a}{2}} + \frac{1}{2}C_{\frac{a}{2}} =\]
\[= \frac{3}{2}C_{a} + C_{\frac{a}{2}} = \frac{3}{2}\pi a + \pi \bullet \frac{a}{2} = 2\pi\text{a.}\]
\[Ответ:\ \ 2\pi\text{a.}\]