Hint – Optimal purchase & consumer surplus
Buy slices while the next slice's marginal value (WTP) ≥ price and as long as your remaining budget allows. Consumer surplus is the sum of (WTP − price) over purchased slices.
Buy slices while the next slice's marginal value (WTP) ≥ price and as long as your remaining budget allows. Consumer surplus is the sum of (WTP − price) over purchased slices.