Illustration of a regular right heptagonal/septagonal prism with regular heptagons/septagons for bases…