They owned shares in Alibaba that had a market value of $4b more than Yahoo's market cap, which in theory should have reflected the value of Alibaba plus all the other assets.
If you take $1bn from alibaba -> $1BN goes to shareholders.
If yahoo takes $1bn from alibaba -> they pay a hundred million for a golden parachute, stagnate tumblr with the other 500$, buy startups for $499 million and return some loose change and pocket lint to investors.