The price fell in public, in three steps

Part of Unacademy had ₹900 crore in the bank. It still sold to upGrad at 94% below its peak.

The first deal collapsed over valuation and structure

Inc42 reported that upGrad dropped its plan because the two sides could not agree on a final valuation, and that Unacademy was reportedly seeking around $300 to $400 million; it could not confirm what upGrad would pay. Storyboard18, citing Moneycontrol, said the talks fell through over disagreements on valuation and deal structure. A few days later came the franchise move. The price was found by trial in public, not set in one negotiation.

Sources: upGrad-Unacademy Merger Talks Fall Apart On Valuation Differences | Inc42, Unacademy to exit offline centres, embrace franchise model by April | Storyboard18