Two cones have a common height; their vertices are at opposite ends of this height. The slant height of one cone is and forms an angle with the height. The slant height of the other cone forms an angle with the height. Find the volume of the common part of both cones.