The volume of a rectangular prism is given by:
[tex]V=w\cdot l\cdot h[/tex]We know that the volume is 72 cub cm, the width is 2 cm and the height is 4 cm. Plugging this value in the equation we have:
[tex]72=2\cdot l\cdot4[/tex]Solving the equation for l we have:
[tex]\begin{gathered} 72=2\cdot l\cdot4 \\ 72=8l \\ l=\frac{72}{8} \\ l=9 \end{gathered}[/tex]Therefore the lenght of the prism is 9 cm.