Answer:
The perimeter of the square base is 12 cm, so the length of each side of the base is 12/4=3cm.
The volume of the pyramid can be found using the formula:
V = (1/3)Bh
where B is the area of the base and h is the height.
The area of the base is the length of one side squared, so B = 3^2 = 9.
So, the volume of the pyramid is:
V = (1/3) * 9 * 5 = 15 cubic centimeters.