John will purchase where the marginal revenue is equal to the marginal cost.
Equating the marginal revenue to the marginal cost:
Without the quantity discount, John will purchase 450 units.
The price without quantity discount is:
Without the quantity discount, John will spend:
The quantity discount is that John gets to pay $120 for the first 400 units. Thus, for 450 units, his spending will be:
Therefore, John will buy just 450 units.