He made $400B, not Twitter. That's almost entirely from Tesla and other ventures, not Twitter.
Last I've been able to find Twitter was valued at $33B when xAI bought it. But that was clearly an overvalued sale. Just look at the valuation over time.

And that's just raw valuation which is easily manipulated, not revenue or profit, which can be easily manipulated.