I am trying to come up an equation for the maximum volume for a prism with a base of a regular polygon, given that the surface area is 100 units squared. I ended up with these two equations, but I'm not sure how to optimize as there are three variables for only two equations. Link to equations: https://docs.google.com/document/d/1-qH5ErluVdQNmIDeXBGF0z-jMB6BYLI4yNb4EkmitUc/edit?usp=sharing
$n$- number of sides
$s$- length of side
$h$- height of prism.
$$ SA = \frac{ns^2}{2 \tan(\frac{\pi}{n})} + nhs = 100. $$ $$ Vol = \frac{200s \tan \frac{\pi}{n} - ns^3}{8 \tan^2 \frac{\pi}{n}} $$
It is similar to the investigation in this website(https://ibmathsresources.com/2017/05/21/optimization-of-area-an-investigation/), but with prisms instead of planes.