volume of pyramid = (1/3)Ah
where A = area of the base, and h = height of the pyramid.
The base of the pyramid is a square with side 10, so the area of the base is 10^2 = 100.
The figure shows the slant height of the of the pyramid. That is the height of one of the triangles that form the sides of the pyramid. You need the vertical height of the pyramid itself. The height you need is the length of the segment that joins the center of the base of the pyramid to the tip of the pyramid. We can find it using the Pythagorean equation.
a^2 + b^2 = c^2
5^2 + b^2 = 13^2
25 + b^2 = 169
b^2 = 144
b = 12
The height of the pyramid is 12. Now we use the volume formula above with A = 100 and h = 12.
volume = (1/3)(100)(12)
volume = 400
Answer: 400 cubic units