Calculate the volume of a regular pyramid of height h

Calculate the volume of a regular pyramid of height h, knowing that this pyramid is based on a convex polygon whose sum of inner angles is nπ and the ratio between the lateral surface and the base area is k.

Idea: Use the formula $\overline{){\displaystyle \frac{lwh}{3}}}$ for finding the volume. But at first you have to Bash the problem to find the width and length and then after getting their values you have to plug it into the formula to find the volume.

Calculate the volume of a regular pyramid of height h, knowing that this pyramid is based on a convex polygon whose sum of inner angles is nπ and the ratio between the lateral surface and the base area is k.

Idea: Use the formula $\overline{){\displaystyle \frac{lwh}{3}}}$ for finding the volume. But at first you have to Bash the problem to find the width and length and then after getting their values you have to plug it into the formula to find the volume.