I'm not sure what you mean by "the length of its base". The obvious thing is the length of asideof the triangle but another possibility is the length of an altitude.

First, can you write the formula for volume of such a prism with base side length s and height h?