The text is a proverbial expression conveying the idea that sharing joy increases it and sharing sorrow reduces it. It does not play on different meanings of a word or similar-sounding words for a humorous effect.
Joy shared , joy doubled : sorrow shared , sorrow halved .