ABCDEFGH is a rectangular prism. The volume of pyramid $BEFG$ is $5.$ Find the volume of the whole rectangular prism.