The clam opened its shell to bask in the sun, and the snipe pecked it. Its mouth was clamped by the clam shell, and neither side gave in. When the fisherman came, he caught both. It is a metaphor for both sides to lose in a dispute, and it is cheaper for the third party.