We need to find the volume of the pyramid.
We know that the pyramid has the same base area as the prism since they have the same base: a rectangle with dimensions a and b.
Also, both the figures have the same altitude c.
The volume V₁ of the prism is given by the formula:

And the volume V₂ of the pyramid is given by the following formula:

We know that the prism has a volume of 39 units³. Thus, we have:

Then, using this information into the formula for the volume of the pyramid, we obtain:

Therefore, the volume of the pyramid is 13 units³.