since we know the hypotenuse and one of the legs of the triangular base, we can use the pythagorean theorem to get the missing leg, namely the base of the triangle, as you see in the picture. Thus we end up with a triangle whose base is 5 and height is 12.
now, the volume of the prims, is just the area of its triangular base, times the length, namely 10.