Solving this car dealership discount problem