The $500m-valuation round happened so close to the buyout, though, that it's quite possible the investors in that round knew of pending offers, which then increased the valuation. So if that round's valuation itself then increased the buyout's valuation, that's a neat bit of circularity.
The purchase price is usually determined based on the latest round of financing.