What does Lesser of total cost of the vehicle and the total proceeds received means?

For ex: bought a car for $10000 and sold it for $8500. What would be lesser here?