Consider a regular n-gon A1A2…An with area S. Let us draw the lines l1,l2,…,ln perpendicular to the plane of the n-gon at A1,A2,…,An respectively. Points B1,B2,…,Bn are selected on lines l1,l2,…,ln respectively so that:(i) B1,B2,…,Bn are all on the same side of the plane of the n-gon;
(ii) Points B1,B2,…,Bn lie on a single plane;
(iii) A1B1=h1,A2B2=h2,…,AnBn=hn.Express the volume of polyhedron A1A2…AnB1B2…Bn as a function in S,h1,…,hn.