Concept:
For an astronomical telescope in normal adjustment,
\[
M=\frac{f_o}{f_e}
\]
and
\[
L=f_o+f_e
\]
where \(L\) is the tube length.
Step 1: Use magnifying power.
\[
\frac{f_o}{f_e}=5
\]
\[
f_o=5f_e
\]
Step 2: Use the telescope length.
\[
f_o+f_e=36
\]
\[
5f_e+f_e=36
\]
\[
6f_e=36
\]
\[
f_e=6\text{ cm}
\]
\[
f_o=30\text{ cm}
\]
\[\begin{aligned}
\boxed{f_o=30\text{ cm},\quad f_e=6\text{ cm}}
\end{aligned}\]
Hence, option \(\mathbf{(B)}\) is correct.