A frustum of height 6 cm is cut from a pyramid whose base is a square of side 20 cm and height 14 cm. Find the volume of the frustum.