Set a sensible ceiling
Estimated maximum acquisition cost = item sale price + buyer postage − estimated selling costs − your desired profit. If this is negative, no non-negative buying cost meets your target.
Sales at £24, £28 and £32 have a median of £28. With £5 selling costs and a £10 desired profit, the maximum acquisition cost is £13. These are illustrative amounts, not market data.