keeping in mind that, the diameter of A is 24, thus its radius is 12, and B's diameter is 22, thus its radius is 11.
[tex]\bf \textit{volume of a cylinder}\\\\
V=\pi r^2 h\qquad \qquad \qquad \qquad
\begin{array}{llll}
\stackrel{\textit{volume of cylinder A}}{\pi(12^2)(18) }\implies 2592\pi
\\\\\\
\stackrel{\textit{volume of cylinder B}}{\pi(11^2)(20) }\implies 2420\pi
\end{array}[/tex]
how much is left? well 2592π - 2420π, that much.