Illustration of the sections of a prism made by parallel planes cutting all the lateral edges into equal…